C:\batch>type grimbear.bat
@echo off
REM TM below is variable and runs in RAM
REM C:\fold1\fold2\TM. TM is a file stored on the HDD.
REM Fold1 and fold2 are directories located on the HDD.
cd \
set TM="Ticket Folder"
echo TM = %TM%
cd \
cd batch
md fold1
cd fold1
md fold2
cd fold2
echo this a file called TM > TM.txt
type TM.txt
dir *.*
Output:
C:\batch>grimbear.bat
TM = "Ticket Folder"
This a file called TM
Volume in drive C has no label.
Volume Serial Number is F4A3-D6B3
Directory of C:\batch\fold1\fold2
12/07/2009 11:18 AM <DIR> .
12/07/2009 11:18 AM <DIR> ..
12/07/2009 11:20 AM 25 TM.txt
1 File(s) 25 bytes
2 Dir(s) 305,553,166,336 bytes free
C:\batch\fold1\fold2>