exe becomes zero kb

A

Alamelu

I have developed a command line application(xyz.exe), when i give the below
command in command prompt, it gives "the process cannot access the file
because it is being used by another process" message and xyz.exe becomes zero
kb in size

C:\>C:\Test\Bin\xyz.exe C:\>C:\Test\Bin\xyz.exe

i am invoking the exe twice in the same line immediately

why does the exe becomes zero kb, when it should just prompt the message
 
I

Ismo Salonen

Alamelu said:
I have developed a command line application(xyz.exe), when i give the below
command in command prompt, it gives "the process cannot access the file
because it is being used by another process" message and xyz.exe becomes zero
kb in size

C:\>C:\Test\Bin\xyz.exe C:\>C:\Test\Bin\xyz.exe

i am invoking the exe twice in the same line immediately

why does the exe becomes zero kb, when it should just prompt the message
This is not VC question.

However this is basic knowledge : the output redirection is executed by
command processor before the exe is started. It empties the file and
then the empty file fails to execute.

What in earth you are trying to achieve ?

ismo
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top