>hi all!
>
>is there an alternative command for the attrib-command in dos?
>
>if possible i'd like to get rid of the
run /n ...-command in fox but i do need this attrib-command.
>
>other ways i
don't want to use:
>
- x=createobject("wscript.shell")
>x.run("attrib ...")
>- using ShellExecute
>
>thanks!
One way is to use the FileSystemObject in Scrrun.dll:
*----------------------------------------
LOCAL loFS AS Scripting.FileSystemObject
LOCAL loFile
m.loFS = NEWOBJECT( "Scripting.FileSystemObject" )
m.loFile = m.loFS.GetFile( "filename" )
? m.loFile.Attributes
* Then the code to change the attribute.
- Andy Rice
San Diego, CA