Example:

```
set mydir=%CD%

echo %CD% 
C:\Stuff\More Stuff\Lots of Stuff

```

So how should the variable be used? Usually the entire path could be encased in quotes, but what about the variable?

```
for /f %G in (%mydir%\file.txt) DO (echo %G)

```