Solved

Running pscp.exe from a bat fi

Posted on 2004-08-24
3
2,834 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

Enabling OSINT in Activity Based Intelligence

Activity based intelligence (ABI) requires access to all available sources of data. Recorded Future allows analysts to observe structured data on the open, deep, and dark web.

Join & Write a Comment

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…
YESTERDAY YESTERDAY.BAT is inspired by a previous article I wrote entitled: TOMORROW.BAT (http://www.experts-exchange.com/OS/Microsoft_Operating_Systems/MS_DOS/A_4196-Advanced-Batch-File-Programming-TOMORROW-BAT.html). The crux of this batch f…
Illustrator's Shape Builder tool will let you combine shapes visually and interactively. This video shows the Mac version, but the tool works the same way in Windows. To follow along with this video, you can draw your own shapes or download the file…
Here's a very brief overview of the methods PRTG Network Monitor (https://www.paessler.com/prtg) offers for monitoring bandwidth, to help you decide which methods you´d like to investigate in more detail.  The methods are covered in more detail in o…

758 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

Need Help in Real-Time?

Connect with top rated Experts

22 Experts available now in Live!

Get 1:1 Help Now