Upload Dayfile: Difference between revisions

1,201 bytes removed ,  20:24, 22 August 2017
m
No edit summary
Line 18: Line 18:


*A script for uploading (ftp'ing) the file  
*A script for uploading (ftp'ing) the file  
*A batch file to run the command to upload  
*A batch file to run the command to upload
*(optionally) The Windows Task Scheduler (AT)


== The script  ==
== The script  ==
Line 56: Line 55:
On the Internet Settings screen, put <tt>c:\cumulus\upload-dayfile.bat</tt> in the Daily box. Leave the params empty.
On the Internet Settings screen, put <tt>c:\cumulus\upload-dayfile.bat</tt> in the Daily box. Leave the params empty.


== The Windows Task Scheduler  (if using this method) ==


Now we tell Windows how often to run our script.
*Click Start, Run and type <tt>cmd</tt> press Return
:If you are using Windows 7 you need Admin privileges to set the scheduler. Click Start, All Programs, Accessories. Right Click on 'Command Prompt' and select 'Run as Administrator' You may be asked to confirm this elevation of security privileges (temporarily)
*A black box (command console) will appear
*Type, or copy:
<pre>at 00:10 /every:M,T,W,Th,F,S,Su "c:\cumulus\upload-dayfile.bat"</pre>
:Change the end of the command to the location of the Batch file you created above
:If your roll-over is 9/10am change 00:10 to 10:10 to run the script every dat at 10:10am rather than 10 minutes pas midnight
*Press return
*Type AT and return and you should now see your job listed in the scheduler. Your Job will run every day at the specified time.
*Close the command window by typing <tt>exit</tt> or closing the window
<br> There is no notification if the task runs or fails. You need to check the System Event Viewer in the Admin section of the Control Panel for errors.
<br>


== Running manually  ==
== Running manually  ==
5,838

edits