Utility("RUNWIN","ERASE ...") not working?? (OpenInsight Specific)
At 15 NOV 1998 12:08:32PM B. Cameron wrote:
Maybe its because I have been staring at it for so long but I
can't seem to get …
Outputfile=f:\data\$catalog."
statuscode=Set_Status(0)
x=Utility("RUNWIN","ERASE ":OUTPUTFILE:"*")
If Get_Status(statuscode) then
x=Msg(Parent,statuscode)End
to process. OS files do not get deleted.
Works fine if I go to the command line.
At 15 NOV 1998 12:45PM [email protected] - [url=http://www.sprezzatura.com]Sprezzatura, Inc.[/url] wrote:
It doesn't work because ERASE isn't a program, it's a command built into the command interpreter (most likely COMMAND.COM).
You have 2 options as I see it.
The first is run command com with the /C option
RetVal=Utility( "RUNWIN", "COMMAND /C ERASE *.*" )
The other is to use the OSDELETE command embeded in Basic+.
Personally, I think the OSDELETE opcode is the way to go, since there won't be the screen flash and all the stuff you'll need to hide the command window.
At 15 NOV 1998 05:20PM B. Cameron wrote:
Aaron,
Thanks, that was my suspicion but figured that showing the
cause would be a better explanation.
I will use the OSDelete!
Bruce