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%"