With my .cmd script, all I am doing is creating a new file, setting a location for the file, naming it and adding an extension. I need one last bit to finish this.
If nothing is entered in fileLocation then I want it to be place on the desktop. How can I do this?
@echo off
@echo --- Create A New File ---
@echo -
@echo Choose File Desination.
set /p fileLocation=@
@echo -
@echo What do you want to call your new file?
set /p fileName=@
@echo -
@echo Almost Done! What is the files extension?
set /p extension=@
echo -
copy NUL "%fileLocation%/%fileName%.%extension%"
@echo offyou don't need to repeat the@each time. – Dennis Williamson Sep 16 '10 at 10:43