I am hoping someone can help me to figure out what I am doing wrong. I have the following batch file
@Echo Off
Echo Copying All Files To Reports Folder
ECHO ------------------------- >> \\SERVER\FOLDER\ComUpload\%DATE%\ReportsFromCompany.txt
ECHO %username% - %DATE% %TIME% >> \\SERVER\FOLDER\ComUpload\%DATE%\ReportsFromCompany.txt
ECHO Moving The Following Files: >> \\SERVER\FOLDER\ComUpload\%DATE%\ReportsFromCompany.txt
MOVE /Y Z:\*.doc \\76718\Reports\ >> \\SERVER\FOLDER\ComUpload\%DATE%\ReportsFromCompany.txt
PAUSE
The place I am having a problem with is where it says %DATE%. I really need to have a new folder created every new date that this program is run so the document does not get huge and it is much more manageable.
I understand that %DATE% sends the date with the weekday in front of the date, and ideas on how I can strip that out, maybe that would work.
Thanks -dan
@Echo Off
Echo Copying All Files To Reports Folder
ECHO ------------------------- >> \\SERVER\FOLDER\ComUpload\%DATE%\ReportsFromCompany.txt
ECHO %username% - %DATE% %TIME% >> \\SERVER\FOLDER\ComUpload\%DATE%\ReportsFromCompany.txt
ECHO Moving The Following Files: >> \\SERVER\FOLDER\ComUpload\%DATE%\ReportsFromCompany.txt
MOVE /Y Z:\*.doc \\76718\Reports\ >> \\SERVER\FOLDER\ComUpload\%DATE%\ReportsFromCompany.txt
PAUSE
The place I am having a problem with is where it says %DATE%. I really need to have a new folder created every new date that this program is run so the document does not get huge and it is much more manageable.
I understand that %DATE% sends the date with the weekday in front of the date, and ideas on how I can strip that out, maybe that would work.
Thanks -dan