.bat file current date [Solved/Closed]

Posts
2
Registration date
Tuesday October 29, 2013
Last seen
October 29, 2013
- - Latest reply: ac3mark
Posts
11746
Registration date
Monday June 3, 2013
Status
Moderator
Last seen
March 24, 2019
- 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
See more 

1 reply

Posts
11746
Registration date
Monday June 3, 2013
Status
Contributor
Last seen
March 24, 2019
2340
0
Thank you
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
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
11746
Registration date
Monday June 3, 2013
Status
Moderator
Last seen
March 24, 2019
2340 -
Zip is a compression. You have to code the zip!