LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

System exec rmdir doesn't work

You're right. The OpenG source code does do a much better job of deleting the files. It is still CPU intensive, but, that is probably the way it will have to be to delete a whole directory like this. Thank you all for your help. (Although, I'm still curious why the system exec and rmdir command didn't work.)

Thanks for showing me OpenG by the way. It looks to be a really comprehensive set of tools.
0 Kudos
Message 11 of 15
(1,331 Views)


@Sirin wrote:
I'm still curious why the system exec and rmdir command didn't work



Yes, it is strange.

Did you capture the standard output and standard error for some clues?

Have you also tried e.g. "del /F /S /Q".
0 Kudos
Message 12 of 15
(1,324 Views)
I put probes off of those inputs when I was executing the system exec VI, thinking there might be some sort of error message as well, but they both came back as empty. One thing I didn't do was connect up the error out from the system exec VI to a generic error handler; so it is possible that the VI was returning some sort of LabVIEW error.
0 Kudos
Message 13 of 15
(1,322 Views)
System Exec does execute applications and command files like *.exe and *.com. However some commonly used command like dir or rmdir are not executable command files but commands internal to the command interpreter which is cmd.exe. To execute these internal commands you have to invoke cmd.exe first with System Exec.
In that case, the string you pass to System Exec is "cmd.exe /C rmdir [path]".

Message Edité par Jean-Pierre Drolet le 06-25-2005 09:39 AM



LabVIEW, C'est LabVIEW

Message 14 of 15
(1,314 Views)
Thanks for the information.
0 Kudos
Message 15 of 15
(1,287 Views)