Writing commands in batch file

Advertisement

indraabanerjee
Joined:
Posts:
2
Location:
Kolkata

Writing commands in batch file

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

Reply with quote

Advertisement

martin
Site Admin
martin avatar
Joined:
Posts:
27,226
Location:
Prague, Czechia

Re: Writing commands in batch file

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

Reply with quote

indraabanerjee
Joined:
Posts:
2
Location:
Kolkata

Re: Writing commands in batch file

martin 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

Reply with quote

martin
Site Admin
martin avatar
Joined:
Posts:
27,226
Location:
Prague, Czechia

Re: Writing commands in batch file

Any other output (if not error)?
_________________
Martin Prikryl

Reply with quote

Advertisement

You can post new topics in this forum