Batch file's Core FTP line is Not running during Scheduled Task. Works if started Manually -


i have simple batch file needs run weekly upload files via core ftp.

i'm using free version of core ftp le.

mysavedprofile site name of saved profile created using core ftp's site manager. profile contains url / credentials / etc of site connect to.

here contents of batch file:

  set logf=confirm.log   echo test-start >> %logf%   "c:\progra~1\coreftp\coreftp.exe" -b -s -pasv -o -site mysavedprofile -u "c:\progra~2\pathtofiles\filetoupload.txt"   echo test-finish >> %logf% 

for windows server 2012 r2 task scheduler, have created basic, weekly scheduled task on task scheduler library root runs batch file. scheduled task have:

(under general tab)

   "run whether user logged on or not" selected    "run highest privileges" checked     configure = windows server 2012 r2 

(under actions)

   action = start program    program / script = "c:\progra~2\pathtofiles\batch.bat"    start in = c:\progra~2\pathtofiles\ 

here weird behavior getting:

if double click on batch file directly, works fine , uploads text file via core ftp fine.

however, if try let windows task scheduler run it, runs except core ftp line. is, usual:

 test-start  test-finish 

in confirm.log file, filetoupload.txt has not been uploaded remote server, , there no errors coreftp can detect.

i have tried service account has permissions run batch files, own account scheduled task. same result: doesn't seem run coreftp line. @ least not via task scheduler. need upload automated.

i've searched core ftp's documentation, google, etc. no 1 seems have run exact issue. i've applied recommendations distantly related issues, none of them have worked.

any appreciated. thank you.

the way use full version of core ftp (that core ftp pro). if use le version have check "run when user logged on" option.

this happens because of splash screen @ beginning.

if can't logged on forever create user logged on these tasks.

remember use -log option on coreftp check if doing something.


Comments

Popular posts from this blog

java - How to specify maven bin in eclipse maven plugin? -

single sign on - Logging into Plone site with credentials passed through HTTP -

php - Why does AJAX not process login form? -