Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    text
    copied!<p>Thanks to @dbenham I was able to come up with a rudimentary script, it is admittedly pretty ugly code but it works right now for what I need. As time progresses I intend on a more user friendly script with error catching. At the moment in order to run the script you have to edit the .bat with the folder being used rather than it being a user initiated variable. I also haven't asked the question what the userlogin and pw is for WinSCP but rather unsecurely at the moment have it built into the script. Obviously that will also eventually be a user asked question. </p> <pre><code>@echo off SETLOCAL ENABLEEXTENSIONS SETLOCAL ENABLEDELAYEDEXPANSION :checkformovfile REM Check if a .mov file has been added to the folder for %%I in (*.*) do (if exist "H:\converted\*.mov" GOTO:checkfilecreation) Goto :checkformovfile :checkfilecreation REM Now that a .mov file has been added to the folder check to see if the file has REM completed the conversion or copying to the folder before starting ftp CLS for %%I in (*.mov) do ( (call ) &gt;&gt;%%I ) 2&gt;nul &amp;&amp; (cls &amp;&amp; set b=%%I &amp;&amp; @echo !b! is completed and transfer is ready &amp;&amp; GOTO :fileready ) || (cls &amp;&amp; echo %%I is still being created ) :ContinueCheck REM Go back to checkfilecreation module GOTO :checkfilecreation :fileready REM copy completed file to uploaded folder move /Y "H:\converted\!b!" "H:\uploaded\!b!" echo REM start ftp and upload file to home user folder on ftp site and write log C:\WinSCP\WinSCP.exe /console /command "option batch on" "option confirm off" "open ftp://someuserlogin:someuserpw@someftpsite.com:21" "put H:\uploaded\!b! /home/user/!b!" "exit"||echo !b! uploaded successfully&gt;log.txt GOTO:checkformovfile :eof </code></pre>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload