Solved

Running pscp.exe from a bat fi

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

DevOps Toolchain Recommendations

Read this Gartner Research Note and discover how your IT organization can automate and optimize DevOps processes using a toolchain architecture.

Question has a verified solution.

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

Suggested Solutions

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…
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…
This Micro Tutorial will teach you how to censor certain areas of your screen. The example in this video will show a little boy's face being blurred. This will be demonstrated using Adobe Premiere Pro CS6.
Email security requires an ever evolving service that stays up to date with counter-evolving threats. The Email Laundry perform Research and Development to ensure their email security service evolves faster than cyber criminals. We apply our Threat…

770 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