Solved

Running pscp.exe from a bat fi

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

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering 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

Title # Comments Views Activity
Printing Folders, SubFolders, Files. 16 223
dsquery command line assistance 2 125
Xcopy / Robocopy Question 7 70
How to Skip in FOR command if a Directory does not exist. 6 95
TOMORROW TOMORROW.BAT is inspired by a question I get asked over and over again; that is, "How can I use batch file commands to obtain tomorrow's date?" The crux of this batch file revolves around the XCOPY command - a technique I discovered w…
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…
Although Jacob Bernoulli (1654-1705) has been credited as the creator of "Binomial Distribution Table", Gottfried Leibniz (1646-1716) did his dissertation on the subject in 1666; Leibniz you may recall is the co-inventor of "Calculus" and beat Isaac…

756 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