Yzöwl Posted January 15, 2006 Share Posted January 15, 2006 My previous response was simply an improvement to jdoes code, not a complete answer.Here however is my solution@echo offfor %%? in ("%~dp0..") do set parent=%%~f?echo/%parent% is your parent directorygoto :eof 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