1.

Solve : Current Dir?

Answer»

Hello,

Does anybody know the variable for current DIRECTORY ??

THANK You

AlmnThis brings the current PATH in the variable cp.

FOR /F "delims=" %%i IN ('cd') DO set cp=%%i

hope this helps
uliOn some machines %cd% will work equally well. Please specify your OS when POSTING questions. It makes life a lot easier for everyone.

8-)



Discussion

No Comment Found