At 03:06 PM 4/25/2001, you wrote:
>Hi, All
>
>I'm having some trouble mapping a network drive
>through my perl script.
>the mapping looks like this:
>
>system ("net use \\mypc\reports");
>
>Pls let me know if this is not the correct syntax.
>
>thanks,
>
>
>=====
>Peter Lemus

'\' is an escape character, so the character after it has special 
meaning.  So in order to print a single '\' you have to tell Perl 
'\\'.  After Perl has had it's way with the string, you command interpreter 
will see

net use \mypc eports

That space above before 'eports' should be a \r character.  Double all of 
your backslashes and you'll be ok.

system("net use \\\\mypc\\reports")

Thank you for your time,

Sean.

Reply via email to