I have a batch file that opens a URL to download a csv file, then I need to move and then rename that csv form downloads folder to other one.
What I have is:
@echo off SET CCDIR=C:\Users\(username)\Desktop SET LOADDIR=C:\Users\(username)\Downloads ECHO *************************************************************************** ECHO Downloading the file ECHO *************************************************************************** start chrome (URL string) :NEXT ECHO *************************************************************************** ECHO Move CSV file from Downloads folder to Desktop ECHO *************************************************************************** move %LOADDIR%\*(file string)* %CCDIR% ren %CCDIR%\*(file string)* (new file name) I want to execute it all in the same bat, but just the start chrome is working, the bat is ignoring the move and ren.
How can I do that?
wgetis a program meant for downloading files from the internet without needing to open a web browser. This will make your script significantly faster and more portable.certutilcommand. Take a look at this example