Sign up on the Revelation Software website to have access to the most current content, and to be able to ask questions and get answers from the Revelation community

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.

[email protected]

Sprezzatura, Inc.

www.sprezzatura.com_zz.jpg


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

View this thread on the forum...

  • third_party_content/community/commentary/forums_nonworks/0e30171fcb71d4fa852566bd005e2a71.txt
  • Last modified: 2023/12/28 07:40
  • by 127.0.0.1