Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Saving files on the desktop
Message
De
09/05/2008 09:24:14
Neil Mc Donald
Cencom Systems P/L
The Sun, Australie
 
 
À
09/05/2008 02:58:01
Lutz Scheffler
Lutz Scheffler Software Ingenieurbüro
Dresden, Allemagne
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire de rapports & Rapports
Versions des environnements
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP
Database:
Visual FoxPro
Divers
Thread ID:
01315523
Message ID:
01316054
Vues:
21
Hi Agnes,

Yes I know powertoys, I have also seen what happens when the desktop is redirected to the network and you loose the network connection.
If you want the same environment, just use GETENV("ALLUSERSPROFILE") + "\DESKTOP\", I work on the KISS principle Keep It Simple Stupid, enough can go wrong with windows without adding complexity to the user environment.

Anyway the one line of code "GETENV("USERPROFILE") + "\DESKTOP\"" is a lot better than using WSH, as I always disable it due to the inherent security concerns if it is running.



>Hi Neil,
>
>Let me first give a "official" way to redirect desktop.
>Do you know PowerToys from MS?
>
>Update:
>Choose Tweak UI
>/Update:
>
>Go to Node "/My Computer/Special Folders", the combobox "Folders" gives you a list of special folders, the button next to it will change the path.
>
>The first reason to redirect is to move the whole user folder away from drive C:. This will make backup's much more efficient.
>But this would keep Desktop inside userprofile.
>
>Other reasons might be that you are serveral users on the same comp (Admin, User, Poweruser) for whaterver reason and like to have the same environment. An other might be that you like to have the same environment (or parts of it) on several comps. Or you like to have all userprofile but dektop and start on a server.
>
>Agnes
>>Agnes,
>>Why would you redirect, and if so where to. And how would windows find its contents.
>>
>>>Neil,
>>>
>>>GETENV("USERPROFILE") + "\DESKTOP\"
>>>
>>>is only the "normal" location. One can redirect.
>>>
>>>Agnes
>>>>Hi,
>>>>A better way:
>>>>
>>>>lcFile="YourFile.doc"
>>>>lnFileHandle=FCREATE(GETENV("USERPROFILE") + "\DESKTOP\" + lcFile,0)
>>>>lnSuccess=FCLOSE(lnFileHandle)
>>>>
>
>>>>>
>>>>>Thanks, Jill
Regards N Mc Donald
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform