exec and command cmd

Posted By: NeoNeper

exec and command cmd - 03/17/13 21:28

exec_wait(NULL,"XCOPY /y path ..\\ /e");
This work.

exec_wait(NULL,"del /s /q /f path");
this no WORK.
someone could teach me?

if I run a (file.cmd) the antivirus deletes it before, so I would like to use the command line directly to the engine
Posted By: Uhrwerk

Re: exec and command cmd - 03/17/13 22:34

Are you aware of these:

http://www.conitec.net/beta/afile_cpy.htm
http://www.conitec.net/beta/afile_rename.htm
http://www.conitec.net/beta/afile_delete.htm

The way you use exec looks in any way strange to me. You shouldn't pass NULL to it. This parameter is meant for the program. E.g.
Code:
exec_wait("xcopy","/y path ..\\ /e");

Posted By: NeoNeper

Re: exec and command cmd - 03/18/13 14:22

undertand. tankds Uhrwek. I'll test here
© 2023 lite-C Forums