Similar to %1 in a batch file, but this parameter has to be supplied together when running the batch file, and sometimes I forget. Now I want the batch file to prompt for input, and then have the rest of the batch file process it according to what was entered.
The specific problem is this: on the server I need to back up some data, but the batch file can't automatically create a directory for the current date (I looked for tutorials on the forum and it seems none of them can do it; if there is some way, that would be even better, then I wouldn't have to enter it by hand like this), so I can only use the batch file to create a directory. But sometimes I forget to pass the %1 parameter to the batch file, so it would be best if the batch file could wait for the date to be entered, then create the directory according to the entered content, and finally copy the backup files into that directory.
I'd appreciate guidance from all the experts, thanks!
The specific problem is this: on the server I need to back up some data, but the batch file can't automatically create a directory for the current date (I looked for tutorials on the forum and it seems none of them can do it; if there is some way, that would be even better, then I wouldn't have to enter it by hand like this), so I can only use the batch file to create a directory. But sometimes I forget to pass the %1 parameter to the batch file, so it would be best if the batch file could wait for the date to be entered, then create the directory according to the entered content, and finally copy the backup files into that directory.
I'd appreciate guidance from all the experts, thanks!
