Outbreaker Posted May 20, 2010 Share Posted May 20, 2010 (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 May 20, 2010 by Outbreaker Link to comment Share on other sites More sharing options...
cdob Posted May 20, 2010 Share Posted May 20, 2010 Create a drive letter on the fly: pushd /?Trypushd "%~dp0"dirpausepopdorpushd "%~dp0.." dirpausepopd Link to comment Share on other sites More sharing options...
Outbreaker Posted May 20, 2010 Author Share Posted May 20, 2010 (edited) THX for this. Two days i searched for this and it's so simple. Edited May 20, 2010 by Outbreaker Link to comment Share on other sites More sharing options...
jaclaz Posted May 20, 2010 Share Posted May 20, 2010 JFYI, you should search on "dedicated" sites.Hint:http://www.robvanderwoude.comhttp://www.robvanderwoude.com/search.phpYou may be able to find :http://www.robvanderwoude.com/clevertricks.phphttp://www.robvanderwoude.com/clevertricks.php#PUSHD_UNCjaclaz Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now