.bat file current date

Solved/Closed
Markd Posts 2 Registration date Tuesday October 29, 2013 Status Member Last seen October 29, 2013 - Oct 29, 2013 at 12:15 AM
 Blocked Profile - Aug 6, 2014 at 05:40 PM
Please help me to generate the current date in the given command

@echo off
START "C:\cyware\retail\jobqueue\bin" pos_mallrep.exe <current date> 1 c:\rockwell
Related:

1 response

Blocked Profile
Oct 29, 2013 at 11:33 AM
Good Morning.

Well what is going to be authoring that line of code? I am not aware of a NOTEPAD allowing dynamic statements to be generated.

You could have a server side script that receives a request for the the batch file, and it authors a bat on the fly, and displays a link back to where the file is located to run.

Notepad does have the .log function, but .log will not execute a .bat.

Please post back.
0
Markd Posts 2 Registration date Tuesday October 29, 2013 Status Member Last seen October 29, 2013
Oct 29, 2013 at 09:48 PM
@echo off
START "C:\cyware\retail\jobqueue\bin" pos_mallrep.exe <current date> 1 c:\rockwell


is it possible to set the current date in the .bat instead of literally type it.

Sample:

@echo off
START "C:\cyware\retail\jobqueue\bin" pos_mallrep.exe 20131030 1 c:\rockwell
0
how to zip ? and set current date and with file name in zip format
0
Blocked Profile
Aug 6, 2014 at 05:40 PM
Zip is a compression. You have to code the zip!
0