exe becomes zero kb

  • Thread starter Thread starter Alamelu
  • Start date Start date
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
 
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
 
Back
Top