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

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

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