Jump to content

Recommended Posts

Posted (edited)

HI agan :)

I use the command "%~dp0" in the batch file so that i also get the subdirectory for the UNC path.

But i have a problem if i want to go down a folder i normally used "..\" but this unfortunately doesn't work in a UNC path.

I couldn't find anything in google for 2 days now :(

Edited by Outbreaker

Posted

Create a drive letter on the fly: pushd /?

Try

pushd "%~dp0"
dir
pause
popd

or

pushd "%~dp0.." 
dir
pause
popd

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...