Computing.Net > Forums > Programming > Open PuTTY Secure FTP using batch

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

Open PuTTY Secure FTP using batch

Reply to Message Icon

Name: remgu
Date: November 25, 2008 at 12:53:46 Pacific
OS: XP
CPU/Ram: 4gb
Comment:

I have a batch file that automatically FTPs some files from our servers using the regular Windows command environment(cmd.exe)and it worked great until our Security folks decided to require secure ftp. Now We have to use the PuTTY Secure FTP client (psftp.exe) to FTP these files. The problem is that when I call the program from the batch file, Window's cmd.exe is what gets started and not psftp.exe itself.

In other words when I open psftp.exe manually the app window shows "C:\psftp.exe" so I can FTP just fine but as soon as I try to open the app using the batch file, the app window shows "C:\WINDOW\system32\cmd.exe" and I can't FTP securely. Does anyone knwo how to call the application and actualy invoke it instead of the Window's cmd.exe?

Thanks,
REMGU



Sponsored Link
Ads by Google

Response Number 1
Name: Mechanix2Go
Date: November 25, 2008 at 22:34:47 Pacific
Reply:

It might help to post the batch. Then again, it might not.


=====================================
If at first you don't succeed, you're about average.

M2


0

Response Number 2
Name: remgu
Date: December 1, 2008 at 13:41:33 Pacific
Reply:

It's simple, I have the file in the pc's root directory.

Here is a sample:

@echo off
C:\psftp.exe
pause

Thanks,
REMGU


0

Sponsored Link
Ads by Google
Reply to Message Icon

Related Posts

See More







Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Programming Forum Home


Sponsored links

Ads by Google


Results for: Open PuTTY Secure FTP using batch

How to seach *.mp3 etc using batch www.computing.net/answers/programming/how-to-seach-mp3-etc-using-batch/15950.html

Using batch script print filenames in folder www.computing.net/answers/programming/using-batch-script-print-filenames-in-folder-/19171.html

Rename multiple iles in folder using Batch www.computing.net/answers/programming/rename-multiple-iles-in-folder-using-batch/19638.html