Our Products:   CompleteFTP  edtFTPnet/Free  edtFTPnet/PRO  edtFTPj/Free  edtFTPj/PRO
0 votes
345 views
in CompleteFTP by (150 points)
recategorized by

Hi

I have configured Event on uploaded files.(FTP-script)

I can see that the upload triggers the FTP-user in the script to logon

But when the put-command should run i receive this error:

2016-12-30 16:11:58,062 DEBUG ProcessTrigger [] stdout: DEBUG [ScriptEngine] 30 dec 2016 16:11:58.062 :  Running command: 'put C:\ProgramData\Enterprise Distributed Technologies\Complete FTP\Users\MHTEST1\KOO3XLIFE_2015113013574700526.TXT KOO3XLIFE_2015113013574700526.TXT' 
2016-12-30 16:11:58,068 DEBUG ProcessTrigger [] stdout: DEBUG [ExFTPConnection] 30 dec 2016 16:11:58.068 :  Attempt 1: Distributed Overwrite 
2016-12-30 16:11:58,071 DEBUG ProcessTrigger [] stdout: DEBUG [FTPConnection] 30 dec 2016 16:11:58.071 :  UploadFile(C:\ProgramData\Enterprise,Distributed,Overwrite) 
2016-12-30 16:11:58,085 DEBUG ProcessTrigger [] stdout: ERROR [FTPClient] 30 dec 2016 16:11:58.084 :  Failed to open file 'C:\ProgramData\Enterprise' 
2016-12-30 16:11:58,085 DEBUG ProcessTrigger [] stdout: ERROR [FTPClient] 30 dec 2016 16:11:58.084 :  System.IO.FileNotFoundException: Det gick inte att hitta filen C:\ProgramData\Enterprise. 

 

by (161k points)
Probably need quotes around the path as it contains spaces.
by (150 points)
edited by
In my script I had this:
put %WindowsPath% %FileName%
If i change to
put '%WindowsPath% %FileName%'
I just get another errormessage:
2017-01-04 14:06:05,107 DEBUG ProcessTrigger [] stdout: DEBUG [ScriptEngine] 4 jan 2017 14:06:05.106 :  Running command: 'put 'C:\ProgramData\Enterprise Distributed Technologies\Complete FTP\Users\MHTEST1\KOO3XLIFE_2015113013574700528.TXT KOO3XLIFE_2015113013574700528.TXT''
2017-01-04 14:06:05,111 DEBUG ProcessTrigger [] stdout: DEBUG [ExFTPConnection] 4 jan 2017 14:06:05.111 :  Attempt 1: Distributed Overwrite
2017-01-04 14:06:05,114 DEBUG ProcessTrigger [] stdout: DEBUG [FTPConnection] 4 jan 2017 14:06:05.114 :  UploadFile(C:\Program Files (x86)\Complete FTP\Server\'C:\ProgramData\Enterprise,Distributed,Overwrite)
2017-01-04 14:06:05,183 DEBUG ProcessTrigger [] stdout: ERROR [FTPClient] 4 jan 2017 14:06:05.183 :  Failed to open file 'C:\Program Files (x86)\Complete FTP\Server\'C:\ProgramData\Enterprise'
2017-01-04 14:06:05,183 DEBUG ProcessTrigger [] stdout: ERROR [FTPClient] 4 jan 2017 14:06:05.183 :  System.NotSupportedException: Den angivna s?kv?gens format st?ds inte.
In english :
The entered path format is not supported.
And also errormessage:
Failed to open file 'C:\Program Files (x86)\Complete FTP\Server\'C:\ProgramData\Enterprise'
by (161k points)
Sorry that could have been clearer:

put "%WindowsPath%" %FileName%
by (150 points)
Thank you, that fixed my problem !

1 Answer

0 votes
by (161k points)
 
Best answer
The solution is to use:

put "%WindowsPath%" %FileName%

The User Guide has been changed to reflect this.

Categories

...