Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Foxuser.dbf & fpt files on desktop.
Message
 
To
15/10/2003 14:56:08
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00839007
Message ID:
00839024
Views:
59
>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,

As to the latter, if they're not shortcut link files, then the could be in the AllUsers\Desktop folder. The WScript.Shell object return the current user's desktop. So try passing "AllUsersDesktop" instead of desktop, and see if the file's there.
George

Ubi caritas et amor, deus ibi est
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform