Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
GetTempPath Lib ''kernel32''
Message
 
 
To
22/11/2000 09:03:35
General information
Forum:
Visual Basic
Category:
Windows API functions
Miscellaneous
Thread ID:
00444499
Message ID:
00444579
Views:
7
>>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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform