Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
GetTempPath Lib ''kernel32''
Message
 
 
À
22/11/2000 09:03:35
Information générale
Forum:
Visual Basic
Catégorie:
Fonctions API de Windows
Divers
Thread ID:
00444499
Message ID:
00444579
Vues:
12
>>I want to run a vb program using the winnt scheduler. During the process temp. files are created.
>>When I run the program in the IDE the GetTempPath api returns the correct path and files are created in the correct dir.
>>When the program is scheduled the temp files are created in the WINNT dir.
>>
>>What is going wrong ?
>
>>If you open "Properties" of "My Computer", in the "Environment" tab, do you >a "TEMP" and a "TMP" variable declared?
>
>Both TEMP and TMP point to D:\TEMP\

Scheduled tasks run under a System account and the temp variables are probably not set for that user. You could try creating Temp variables in the System variables section.

HTH.
Larry Miller
MCSD
LWMiller3@verizon.net

Accumulate learning by study, understand what you learn by questioning. -- Mingjiao
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform