cls
set todayFolder=%date:~0,4%%date:~5,2%%date:~8,2%
md %todayFolder%
cd %todayFolder%
md c
md d
md e
cd ..
ghost -clone,mode=pdump,src=1:1,dst=g:\ghost\%todayFolder%\d\c.gho -fx -z2 -sure
ghost -clone,mode=pdump,src=1:2,dst=g:\ghost\%todayFolder%\d\d.gho -fx -z2 -sure
ghost -clone,mode=pdump,src=1:3,dst=g:\ghost\%todayFolder%\e\e.gho -rb -z2 -sure
Under Windows, changing ghost to ghost32 can execute,
But when executing under Dos, the created directories c, d, e are in g:\ghost\ instead of g:\ghost\%todayFolder\.
Finally, c.gho, d.gho, e.gho are under g:\ghost\ instead of the g:\ghos\%todayFolder%\c\,
g:\ghost\%todayFolder%\d\, g:\ghost\%todayFolder%\e\ that I wanted.
I found that the path prompt when ghost is g:\ghost\\d\c.gho.
Is the %todayFolder% parameter invalid? How can it be done?
set todayFolder=%date:~0,4%%date:~5,2%%date:~8,2%
md %todayFolder%
cd %todayFolder%
md c
md d
md e
cd ..
ghost -clone,mode=pdump,src=1:1,dst=g:\ghost\%todayFolder%\d\c.gho -fx -z2 -sure
ghost -clone,mode=pdump,src=1:2,dst=g:\ghost\%todayFolder%\d\d.gho -fx -z2 -sure
ghost -clone,mode=pdump,src=1:3,dst=g:\ghost\%todayFolder%\e\e.gho -rb -z2 -sure
Under Windows, changing ghost to ghost32 can execute,
But when executing under Dos, the created directories c, d, e are in g:\ghost\ instead of g:\ghost\%todayFolder\.
Finally, c.gho, d.gho, e.gho are under g:\ghost\ instead of the g:\ghos\%todayFolder%\c\,
g:\ghost\%todayFolder%\d\, g:\ghost\%todayFolder%\e\ that I wanted.
I found that the path prompt when ghost is g:\ghost\\d\c.gho.
Is the %todayFolder% parameter invalid? How can it be done?

