.NETGURU
Unc name problems
Messages   Related Types
This message was discovered on ASPFriends.com 'ngfx-io' list.


Carlos Magalhaes
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV=3D"Content-Type" CONTENT=3D"text/html; =
charset=3Dus-ascii">
<META NAME=3D"Generator" CONTENT=3D"MS Exchange Server version =
5.5.2652.35">
<TITLE>Unc name problems</TITLE>
</HEAD>
<BODY>

<P><FONT SIZE=3D2>Hi all,</FONT>
</P>

<P><FONT SIZE=3D2>When I try </FONT>
<BR><FONT SIZE=3D2>Dim Trackpath as string</FONT>
<BR><FONT SIZE=3D2>Dim Jobid as String</FONT>
<BR><FONT SIZE=3D2>Trackpath =3D =
"\\myserver\myfolder\mysecondfolder\"</FONT>
<BR><FONT SIZE=3D2>JObid =3D Jobidtxt.text</FONT>
</P>

<P><FONT SIZE=3D2>System.IO.Directory.CreateDirectory("" =
&  Trackpath & " + " & Jobid & =
""")</FONT>
</P>

<P><FONT SIZE=3D2>Now I have problems with trackpath whether I put it =
as a string or hard coded it has problems it cuts out the myfolder part =
always and I receive errors...</FONT></P>

<P><FONT SIZE=3D2>How do I handle UNC names??????</FONT>
</P>

<P><FONT SIZE=3D2>Thank you </FONT>
</P>

<P><FONT SIZE=3D2>Carlos</FONT>
</P>
<BR>

</BODY>
</HTML>

-------------------------------------------------------------
This email and any files transmitted are
confidential and intended solely for the
use of the individual or entity to which
they are addressed, whose privacy
should be respected. Any views or
opinions are solely those of the author
and do not necessarily represent those
of the Trencor Group, or any of its
representatives, unless specifically
stated.

Email transmission cannot be guaranteed
to be secure, error free or without virus
contamination. The sender therefore
accepts no liability for any errors or
omissions in the contents of this message,
nor for any virus infection that might result
from opening this message. Trencor is not
responsible in the event of any third party
interception of this email.

If you have received this email in error please notify
Click here to reveal e-mail address For more information about
Trencor, visit www.trencor.net <http://www.trencor.net>

Reply to this message...
 
    
Jose Fuentes
are you getting system.security.permission errors?

Joe

-----Original Message-----
From: Carlos Magalhaes [mailto:Click here to reveal e-mail address]
Sent: Wednesday, May 22, 2002 9:48 AM
To: ngfx-io
Subject: [ngfx-io] Unc name problems

Hi all,

When I try
Dim Trackpath as string
Dim Jobid as String
Trackpath = "\\myserver\myfolder\mysecondfolder\"
JObid = Jobidtxt.text

System.IO.Directory.CreateDirectory("" & Trackpath & " + " & Jobid & """)

Now I have problems with trackpath whether I put it as a string or hard
coded it has problems it cuts out the myfolder part always and I receive
errors...

How do I handle UNC names??????

Thank you

Carlos

| [ngfx-io] member Click here to reveal e-mail address = YOUR ID |
http://www.aspfriends.com/aspfriends/ngfx-io.asp = JOIN/QUIT
------------------------------------------------------------- This email and
any files transmitted are confidential and intended solely for the use of
the individual or entity to which they are addressed, whose privacy should
be respected. Any views or opinions are solely those of the author and do
not necessarily represent those of the Trencor Group, or any of its
representatives, unless specifically stated. Email transmission cannot be
guaranteed to be secure, error free or without virus contamination. The
sender therefore accepts no liability for any errors or omissions in the
contents of this message, nor for any virus infection that might result from
opening this message. Trencor is not responsible in the event of any third
party interception of this email. If you have received this email in error
please notify Click here to reveal e-mail address For more information about Trencor,
visit www.trencor.net
Reply to this message...
 
    
Carlos Magalhaes
Not at all the only error I am getting is can not find path.

If I do a response.write of the path string the path is incorrect it goes as
follows

\\myserver
<file:///\\myserver%20%20%20%20%20%20%20%20%20%20%20%20%20\mysecondfolder\>
\mysecondfolder\

Instead of \\myserver\myfolder\mysecondfolder\
<file:///\\myserver\myfolder\mysecondfolder\>

And I have no clue why.....

Even if I hard code it in it's the same.

I think that's why it moaning about cant find the path but why is it
stripping the middle folder...?

-----Original Message-----
From: Jose Fuentes [mailto:Click here to reveal e-mail address]
Sent: Wednesday, May 22, 2002 7:29 PM
To: ngfx-io
Subject: [ngfx-io] RE: Unc name problems

are you getting system.security.permission errors?

Joe

-----Original Message-----
From: Carlos Magalhaes [mailto:Click here to reveal e-mail address]
Sent: Wednesday, May 22, 2002 9:48 AM
To: ngfx-io
Subject: [ngfx-io] Unc name problems

Hi all,

When I try
Dim Trackpath as string
Dim Jobid as String
Trackpath = "\\myserver\myfolder\mysecondfolder\"
JObid = Jobidtxt.text

System.IO.Directory.CreateDirectory("" & Trackpath & " + " & Jobid & """)

Now I have problems with trackpath whether I put it as a string or hard
coded it has problems it cuts out the myfolder part always and I receive
errors...

How do I handle UNC names??????

Thank you

Carlos

| [ngfx-io] member Click here to reveal e-mail address = YOUR ID |
http://www.aspfriends.com/aspfriends/ngfx-io.asp = JOIN/QUIT
------------------------------------------------------------- This email and
any files transmitted are confidential and intended solely for the use of
the individual or entity to which they are addressed, whose privacy should
be respected. Any views or opinions are solely those of the author and do
not necessarily represent those of the Trencor Group, or any of its
representatives, unless specifically stated. Email transmission cannot be
guaranteed to be secure, error free or without virus contamination. The
sender therefore accepts no liability for any errors or omissions in the
contents of this message, nor for any virus infection that might result from
opening this message. Trencor is not responsible in the event of any third
party interception of this email. If you have received this email in error
please notify Click here to reveal e-mail address For more information about Trencor,
visit www.trencor.net

| [ngfx-io] member Click here to reveal e-mail address = YOUR ID |
http://www.aspfriends.com/aspfriends/ngfx-io.asp = JOIN/QUIT

-------------------------------------------------------------
This email and any files transmitted are
confidential and intended solely for the
use of the individual or entity to which
they are addressed, whose privacy
should be respected. Any views or
opinions are solely those of the author
and do not necessarily represent those
of the Trencor Group, or any of its
representatives, unless specifically
stated.

Email transmission cannot be guaranteed
to be secure, error free or without virus
contamination. The sender therefore
accepts no liability for any errors or
omissions in the contents of this message,
nor for any virus infection that might result
from opening this message. Trencor is not
responsible in the event of any third party
interception of this email.

If you have received this email in error please notify
Click here to reveal e-mail address For more information about
Trencor, visit www.trencor.net <http://www.trencor.net>
Reply to this message...
 
 
System.IO.Directory




ExamGuru IT Solutions - .Net Guru is owned and operated by ExamGuru, Inc., the man behind .Net Guru. If you're in the market for bespoke software or software consultancy, why not get him and his highly trained team to help? - www.examguru.net/ITCertification
Ad


Need Dot Net Interview Questions?
Ask ExamGuru, Inc. for advice and help on Passing .Net Interviews
.Net Projects
Best-of-breed application framework for .NET projects, developed by ExamGuru, Inc. and ExamGuru IT
Free .net Help
Commission ExamGuru, Inc. and his team for your next bespoke software project
FogBUGZ
The only bug tracking system carefully crafted with one goal in mind: helping teams create great software.
Awesome Tools
If you don't know about these, you're missing out... IT Certification Questions
IT Interview Questions
Free Oracle 10g Training
MCSE Boortcamp
Cisco Study Guides
Cheap Study Guides
Exact Questions
Dot Net Interview Questions
Oracle OCP
Cheap Travel
Designer Perfumes - Wholesale Prices
Free Programming Tutorials
 
ExamGuru IT Solutions - .Net Guru is owned and operated by ExamGuru, Inc., the man behind .Net Guru. If you're in the market for bespoke software or software consultancy, why not get him and his highly trained team to help? - www.examguru.net/ITCertification
 Copyright © ExamGuru, Inc. 2001-2006
Contact Us - Terms of Use - Privacy Policy - www.dot-net-guru.com - www.examguru.net - www.oraclesource.net - www.itinterviews.net - www.examguru.net/ITCertification