View Single Post
  #3  
Old 12-17-2011, 02:16 PM
bat999 bat999 is offline
Senior Member
 
Join Date: Apr 2011
Location: UK
Posts: 131
bat999 is on a distinguished road
Default

Re: How to download files with timestamp in filename (Windows).


This command:-
Code:
for /f "tokens=1-6 delims=/:." %a in ("%date%.%time%") do set FileName="%c-%b-%a-%d-%e-RadioParadise.ogg" && "C:\Program Files\VideoLAN\VLC\vlc.exe" --run-time=30 http://stream-sd.radioparadise.com:9000/rp_192.ogg --sout "#std{access=file,mux=ogg,dst=%FileName%}"
Gives a filename like this:- 2011-12-17-21-02-RadioParadise.ogg
Reply With Quote