.bat file current date [Solved/Closed]

Report
Posts
2
Registration date
Tuesday October 29, 2013
Status
Member
Last seen
October 29, 2013
-
ac3mark
Posts
13031
Registration date
Monday June 3, 2013
Status
Moderator
Last seen
October 11, 2019
-
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

5 replies

Posts
13031
Registration date
Monday June 3, 2013
Status
Moderator
Last seen
October 11, 2019
1576
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.
Markd
Posts
2
Registration date
Tuesday October 29, 2013
Status
Member
Last seen
October 29, 2013

@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
how to zip ? and set current date and with file name in zip format
ac3mark
Posts
13031
Registration date
Monday June 3, 2013
Status
Moderator
Last seen
October 11, 2019
1576
Zip is a compression. You have to code the zip!