Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Windows Vista Temp dir questions
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 9 SP1
Miscellaneous
Thread ID:
01147613
Message ID:
01153782
Views:
16
To Rick and the others that were kind enough to give input.

SYS(2030) returns the VFP temp dir. I fear that some old .FPW file or other setting left over from years ago could change it before I test it. I used the following code instead. Does anyone see any problem doing it this way?
xxTempPath = addbs(getenv('TEMP')) + 'VFPTEMP'
TIA
John.



>That's a great question, but I think you should still be able to do this as long as you use the user's predefined temp directory (SYS(2023)). The temp folder by default lives in the Documents directory where the user will have sufficient rights to create directories (unless specifically removed).
>
>The tight security is going to cause a lot of problems for many applications in general. The first thing I did on Vista after running for barely an hour is disable all the security features because just about nothing would run on the machine without crashing. And that's not just my own code <g>...
>
>+++ Rick ---
>
>
>> and I think you'll be out of luck unless the user has rights in the given folder to create a directory.
>
>By default that's probably not the case. I think you CAN do this in the user's Documents folder since hte user has full rights there. The default TEMP folder as returned
>
>>It's not too soon to start worrying about the next version of Windows and I am already losing sleep over it. The management software we sell has always created a special temp folder in the root of c: and put all FoxPro / VFP temp files there. This is a holdover from the old DOS days when hard drives were small and temp files could easily fill one. When our program starts it looks in there for any files over 2 days old with a .TMP extension and deletes them. Thus, the big report that crashed 200 times never fills the drive. Obviously we could not do this in the Windows temp folder as we don’t know what files belong to our program.
>>
>>As I read the latest about Vista it seems that MS has decided to lock up everything. It looks like we won’t be able to just MD c:\ourtemp anymore if it does not exist. My question is this: what are the chances that we will be able to create sub folders in the windows temp folder. The temp folder is easily accessed and I am sure MS is not dumb enough to restrict access to it (I hope). I would like to keep the method we currently use if possible as it has worked well for almost 15 years.
>>TIA
Beer is proof that God loves man, and wants him to be happy. - Benjamin Franklin
John J. Henn
Previous
Reply
Map
View

Click here to load this message in the networking platform