Solved

Running pscp.exe from a bat fi

Posted on 2004-08-24
3
2,861 Views
Last Modified: 2011-09-20
I downloaded and saved the pscp.exe at C:\MyTest

In my bat file i make a call to it as

C:\MyTest\pscp.exe -v -i C:\MyTest\eg.txt etc...

However, I get the following message which says
C:\MyTest\pscp.exe is not recognised as an internal or external command,operable program or batch file.
0
Comment
Question by:aswam1975
3 Comments
 
LVL 1

Expert Comment

by:Occupied
ID: 11886664
You can not provide the full drive name, instead do this in your batch file:

c:
cd \MyTest
pscp.exe -v -i C:\MyTest\eg.txt

To make it look better add @echo off at the beginning, this way it will not output anything tot he console
0
 
LVL 30

Accepted Solution

by:
SteveGTR earned 35 total points
ID: 11887025
Make sure that pscp.exe exists in the C:\MyTest directory:

dir c:\mytest\pscp.exe

Good Luck,
Steve
0
 

Author Comment

by:aswam1975
ID: 11913862
Thank you did not have the exe!
0

Featured Post

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

VALIDATING DATES One method of validating dates is to jam the date into the DATE command and see if it accepts it by examining the system's errorlevel value. A non-zero result indicates failure. A typical example might look something like the fol…
Being a system administrator some time we require to do things remotely, one of them is installing software. Here I am going to tell you how to install software through wmic (Windows management instrument console). I am not at all saying that this i…
The Email Laundry PDF encryption service allows companies to send confidential encrypted  emails to anybody. The PDF document can also contain attachments that are embedded in the encrypted PDF. The password is randomly generated by The Email Laundr…
In a recent question (https://www.experts-exchange.com/questions/29004105/Run-AutoHotkey-script-directly-from-Notepad.html) here at Experts Exchange, a member asked how to run an AutoHotkey script (.AHK) directly from Notepad++ (aka NPP). This video…

840 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question