Post a reply

Options
Add an Attachment

If you do not want to add an Attachment to your Post, please leave the Fields blank.

(maximum 10 MB; please compress large files; only common media, archive, text and programming file formats are allowed)

Options

Topic review

martin

Re: Writing commands in batch file

Any other output (if not error)?
indraabanerjee

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
martin

Re: Writing commands in batch file

indraabanerjee wrote:

it does not work.

What does it do? Any error message?
indraabanerjee

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