Batch File Space Question

Computer Guy
Computer Guy used Ask the Experts™
on
Hi, I am using

md "%DestFolder%\Hiking Photos"

That comes out as 2 folders Hiking & Photos, how do I make it 1 folder?
Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®

Author

Commented:
I'm sorry, this comes out as 1 folder "Hiking"
NVITEnd-user support

Commented:
Works fine here...

md "%DestFolder%\Hiking Photos"
...results in: %DestFolder%\Hiking Photos

md %DestFolder%\Hiking Photos
...results in: %DestFolder%\Hiking
Commented:
It shouldn't as long as youy have the " " around the whole path what is in the variable %destfolder%

i.e. does it have " " in the variable already for instance, though shouldn't make a difference either, i.e.

md "c:\somedir\Hiking & Photos"
md ""c:\somedir"\Hiking & Photos"
etc.

Without the " " then & is for adding another command on the same line, e.g.

cls & dir *.txt & echo something

Steve

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial