Solved

Running pscp.exe from a bat fi

Posted on 2004-08-24
3
2,877 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

[Webinar] Code, Load, and Grow

Managing multiple websites, servers, applications, and security on a daily basis? Join us for a webinar on May 25th to learn how to simplify administration and management of virtual hosts for IT admins, create a secure environment, and deploy code more effectively and frequently.

Question has a verified solution.

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

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…
Introduction: Recently, I got a requirement to zip all files individually with batch file script in Windows OS. I don't know much about scripting, but I searched Google and found a lot of examples and websites to complete my task. Finally, I was ab…
How to Install VMware Tools in Red Hat Enterprise Linux 6.4 (RHEL 6.4) Step-by-Step Tutorial
This video shows how to use Hyena, from SystemTools Software, to update 100 user accounts from an external text file. View in 1080p for best video quality.

751 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