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

Author Message
danbr
[View user's profile]

Joined: 2016-06-08
Posts: 2
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...

Code:
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]
danbr
[View user's profile]

Joined: 2016-06-08
Posts: 2
I seem to have fixed my own problem... had to add the PATH environment variable manually...
C:\Program Files (x86)\WinSCP\
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 25025
Location: Prague, Czechia
Alternative solutions are:
- Use a full path in the batch file
- Use installer to add winscp.com/winscp.exe to the PATH:
https://winscp.net/eng/docs/ui_installer_selecttasks
- Use WinSCP for the same:
https://winscp.net/eng/docs/ui_pref_integration
Advertisements

You can post new topics in this forum






Search Site

What is WinSCP?

It is award-winning SFTP client, SCP client, FTPS client and FTP client integrated into one software program for file transfer to FTP server or secure SFTP server. [More]

And it's free!

Donate

About donations

$9   $19   $49   $99

About donations

Recommend

WinSCP Privacy Policy

WinSCP License