1.

Solve : Batch File Assistance Needed?

Answer»

I'm trying to write a .BAT file that will ASK for the users imput, then create a directory combining the imput as the new file name along with the system date... ie. 06-04-12_Users Imput

:-?

Any suggestions???

LET %1 be the name of the file to be created. For example, if it was CREATE.BAT, and the user typed "create test", the batch should create a test file (but no extension).

This would require input from the user. So, a batch file could be created that asks for Ctrl-Z to be pressed, and then it could copy con the file.

I am not skilled with dates, but start small. Start with the %1. A sample would be this:

REM - Create.BAT
@ECHO OFF
ECHO PLEASE press CTRL-Z and press ENTER...
COPY CON %1

This would have this outcome:

C:\>Create test.txt
Press CTRL-Z and press ENTER...
^z
1 file(s) copied
C:\>



Discussion

No Comment Found