dammit, need batch file help

Doesn't work. :(

I came up with this, which will work, but there has to be something easier than this.

Code:
FOR %%c IN ("%~dp0..\*.*") do SET PARDIR=%%~dpc
ECHO %PARDIR%
 
Doesn't work. :(

I came up with this, which will work, but there has to be something easier than this.

Code:
FOR %%c IN ("%~dp0..\*.*") do SET PARDIR=%%~dpc
ECHO %PARDIR%

it works by itself...maybe your syntax is off?
 
Am I doing it wrong? I need it as a variable. If I go to a command prompt and type 'ECHO CD..' I get: CD..

hmm...maybe it doesn't want to work with variables and it has to use a finite path? if you open dos and go to c:\windows and then type cd.. it does go back to c