Jump to content

Recommended Posts

Posted

My previous response was simply an improvement to jdoes code, not a complete answer.

Here however is my solution

@echo off
for %%? in ("%~dp0..") do set parent=%%~f?
echo/%parent% is your parent directory
goto :eof


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...