Our Products:   CompleteFTP  edtFTPnet/Free  edtFTPnet/PRO  edtFTPj/Free  edtFTPj/PRO

Event should run FTP-script but failed to open C:\ProgramData\Enterprise

0 votes
19 views
asked Dec 30, 2016 in CompleteFTP by mh (150 points)
recategorized Jan 3 by support2

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. 

 

commented Dec 30, 2016 by support2 (141,250 points)
Probably need quotes around the path as it contains spaces.
commented Jan 4 by mh (150 points)
edited Jan 4 by mh
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'
commented Jan 4 by support2 (141,250 points)
Sorry that could have been clearer:

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

1 Answer

0 votes
answered Jan 4 by support2 (141,250 points)
 
Best answer
The solution is to use:

put "%WindowsPath%" %FileName%

The User Guide has been changed to reflect this.
...