'winscp.com' is not recognized as an internal or extenal command, operable program or batch file

Advertisement

danbr
Joined:
Posts:
2

'winscp.com' is not recognized as an internal or extenal command, operable program or batch file

I seem to keep getting this problem when installing WinSCP for the first time on a new machine (Windows Server 2008 R2), my same script works fine on my work machine (Windows 10 Pro) and I have checked the install directory is directed at C:\Program Files (x86)\WinSCP. I have tried restarting the server after installing WinSCP and even when I open the cmd and type winscp I get the above error... any ideas?

My script which is .bat is below...

winscp.com /log=ftp.log /command ^
    "open ftps://Administrator:password@server.com/ -passive -explicitssl -explicittls" ^
    "synchronize remote C:\Users\Administrator\Documents\dumps /folder" ^
    "exit"

pause

[/code]

Reply with quote

Advertisement

danbr
Joined:
Posts:
2

I seem to have fixed my own problem... had to add the PATH environment variable manually...
C:\Program Files (x86)\WinSCP\

Reply with quote

Advertisement

You can post new topics in this forum