>I have an installation package that installs my application on the clients pc. The installation package (ASTRUM) at the end of its installation calls a foxpro program at the end of the installer process. On one 2000 machine (SP2)foxuser files are being created on the desktop even though I have a resource = off in the apps config.fpw file.
>
>On another 2000 machine (SP4) they are NOT created, as well as two other XP machines. Same code different results.
>
>I have tried to delete the foxuser.dbf & fpt but to no avail.
>
>oWsh = CREATEOBJECT("wscript.shell")
>cDeskPath = oWsh.SpecialFolders("desktop")
>lcFilename = cDeskPath+"\"+"foxuser.dbf"
>IF FILE(lcfilename)
> ERASE &lcfilename
>ENDIF
>lcFilename2 = cDeskPath+"\"+"test.txt"
>IF FILE(lcfilename2)
> DELETE FILE lcfilename2
>ENDIF
>
>I have two issues.... why are they being created and two why can't I delete them. I have tried with and without the ampersand. No go.
>
>Anyone have any ideas?
>
>Thanks in advance,
>
>Wayne
To erase them, you might also try putting quotes around the file name. For example: lcFilename = '"'+cDeskPath+"\"+"foxuser.dbf"+'"'
Previous
Next
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only