Beefy Boxes and Bandwidth Generously Provided by pair Networks
Come for the quick hacks, stay for the epiphanies.
 
PerlMonks  

Re^2: perl and unc paths

by Anonymous Monk
on Aug 22, 2016 at 18:29 UTC ( [id://1170191]=note: print w/replies, xml ) Need Help??


in reply to Re: perl and unc paths
in thread perl and unc paths

Except 'chdir \\\\comp1\\newfolder doesnt work!'

Replies are listed 'Best First'.
Re^3: perl and unc paths
by soonix (Canon) on Aug 27, 2016 at 12:11 UTC

      Like pushd does, you'll need to create a virtual drive first

Re^3: perl and unc paths
by Anonymous Monk on Aug 22, 2016 at 18:31 UTC
    On Windows that is... pushd and popd would work, except you can't do system("pushd \\\\unc_path1\\folder") because it spawns a new shell and then exits with system()

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1170191]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others chilling in the Monastery: (4)
As of 2024-04-23 06:53 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found