Quantcast
Channel: The Official Scripting Guys Forum! forum
Viewing all articles
Browse latest Browse all 15028

Add Timestamp - batch file that calls a script CMD

$
0
0

Hello,

I'm having a bugger of a time. I read all these posts about adding a timestamp to a file using batch files and scripts.

What I'm trying to do, Call a batch file which consists of "ftp -i -s:orders.script"

That batch file is called orders.bat

The script is a little different...

Starts off:

Open 192.168.1.5

username

password

cd Client

cd Customer

cd Order

put order.csv order.csv

quit

My question is how do I accomplish putting a timestamp on order.csv that I am putting on the one server from the other?

Do I put it in the script file, or the batch file? Assuming script... Could be wrong though. There has got to be a simple way to do this with how I'm doing this. Or maybe I'm doing it the hard way... Any help would be greatly appreciated. I'm using Command prompt to accomplish this, the batch file is ran from a job in the task scheduler that goes off 3 times a day. the file gets transferred from an SBS 2008 server to an IBM AS400. I hope I'm not missing any information that seems relevant.


Viewing all articles
Browse latest Browse all 15028

Latest Images

Trending Articles



Latest Images