You are not logged in.

#1 02 Jun 2016 12:55

Dilip.mehra
New Member
Registered: 02 Jun 2016
Posts: 1

How to write a file in windows command line?

Dear Experts,

I have worked on Windows CMD shell, and I am an SAP consultant.My requirement is to drop a csv file (say Account.csv ) at windows server back end and after that file is dropped I have to create a file (test.txt) at the same place to indicate that the original file has been dropped.

This is done because the Original file Account.csv will be of large size and should not be picked until another file named test.txt is created which will happend only after completion of Account.csv file.

The original file Account.csv I am creating using a middleware tool , but second file test.txt I have to create using "Operatig System Command " and here the server is windows NT.

Could you please help me with that.I know the command is Dir>test.txt but how would i create this in specified location like //ipadrs/Account folder ?

I have to write command in command line of my application which will invoke the command.

Offline

#2 08 Jun 2016 20:33

BlueBearr
New Member
Registered: 08 Jun 2016
Posts: 2

Re: How to write a file in windows command line?

Maybe something like this:

echo.>\\ipaddress\Account\test.txt

Offline

Board footer

Powered by