I am trying to make a batch file that will make another batch file. It works up until the point where I enter:
echo if %command%==Hide goto :Hide >> "%homedrive%\Documents and Settings\%username%\desktop\File Hider\FileHider.cmd"
echo if %command%==hide goto :Hide >> "%homedrive%\Documents and Settings\%username%\desktop\File Hider\FileHider.cmd"
echo if %command%==Unhide goto :Unhide >> "%homedrive%\Documents and Settings\%username%\desktop\File Hider\FileHider.cmd"
echo if %command%==unhide goto :Unhide >> "%homedrive%\Documents and Settings\%username%\desktop\File Hider\FileHider.cmd"
echo if %command%==Exit goto :End >> "%homedrive%\Documents and Settings\%username%\desktop\File Hider\FileHider.cmd"
echo if %command%==exit goto :End >> "%homedrive%\Documents and Settings\%username%\desktop\File Hider\FileHider.cmd"
The batch file "File Hider.cmd" has a blank space where it should say "%command%". I know why this happens, but I was wondering if there is a way to work around this.
echo %something% >> name.bat becomes blank space
Moderator: DosItHelp
-
- Posts: 8
- Joined: 11 Apr 2010 20:55
Re: echo %something% >> name.bat becomes blank space
hi aseventhmindset,
Will result to
FileHider.cmd
You should change it to
jeb
Code: Select all
echo if %command%==Hide goto :Hide >> "%homedrive%\Documents and Settings\%username%\desktop\File Hider\FileHider.cmd"
Will result to
FileHider.cmd
Code: Select all
if ==Hide goto :Hide
You should change it to
Code: Select all
echo if %%command%%==Hide goto :Hide >> "%homedrive%\Documents and Settings\%username%\desktop\File Hider\FileHider.cmd"
jeb
-
- Posts: 8
- Joined: 11 Apr 2010 20:55