View Single Post
  #1  
Old 12-17-2011, 11:53 AM
bat999 bat999 is offline
Senior Member
 
Join Date: Apr 2011
Location: UK
Posts: 131
bat999 is on a distinguished road
Question

[SOLVED]How to download files with timestamp in filename (Windows).


Hi
With Linux I can use a command like this:-
Code:
NOW=$(date +"%Y-%m-%d-%H-%M"); vlc --run-time=30 http://stream-sd.radioparadise.com:9000/rp_192.ogg --sout "#std{access=file,mux=ogg,dst=$NOW-RadioParadise.ogg}" vlc://quit
It gives me a downloaded file with this filename format:- 2011-12-17-18-36-RadioParadise.ogg

What is the syntax when using Windows from cmd or with a bat script to give the file a name with the timestamp in the filename?

Last edited by bat999 : 12-17-2011 at 07:43 PM.
Reply With Quote