Topic "Writing commands in batch file"

Author Message
indraabanerjee
[View user's profile]

Joined: 2014-04-03
Posts: 2
Location: Kolkata
Hi,
When i write the below two lines in command prompt it works.
If i write the same lines in a bat file and execute, it does not work.

I cant see any error.Also it is not performing the task written in test_indra.txt.
Can you help? it is very urgent.

cd C:\Program Files (x86)\WinSCP
WinSCP /script="test_indra.txt"

Many Thanks
Indraa
Advertisements
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 24512
Location: Prague, Czechia
indraabanerjee wrote:
it does not work.

What does it do? Any error message?

Last edited by martin on 2014-04-07; edited 1 time in total
indraabanerjee
[View user's profile]

Joined: 2014-04-03
Posts: 2
Location: Kolkata
prikryl wrote:
indraabanerjee wrote:
it does not work.

What does it do? Any error message?


I dont see ny error message.But the test_indra.txt is not getting called.
I understood this because it is not performing whatit is supposed to do i.e coping a file to a rmeotelcoation.
But test_indra.txt is correct because it works when called from command prompt
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 24512
Location: Prague, Czechia
Any other output (if not error)?
_________________
Martin Prikryl
Advertisements

You can post new topics in this forum






Search Site

What is WinSCP?

It is award-winning SFTP client, SCP client, FTPS client and FTP client integrated into one software program for file transfer to FTP server or secure SFTP server. [More]

And it's free!

Donate

About donations

$9   $19   $49   $99

About donations

Recommend

WinSCP Privacy Policy

WinSCP License