jaja714

FileOpen failing on %TEMP%

4 posts in this topic

Am I missing something?  I have a simple FileOpen statement to create a temporary file in %TEMP% but it fails unless I am running as admin!  In Win7, %TEMP% evaluates to " C:\Users\<username>\AppData\Local\Temp" ... why in the world would any Win7 user not have access to his own temp directory?

 

$xh = FileOpen('%TEMP%\' & $guid & '.txt', 10)

 

Share this post


Link to post
Share on other sites



You da man Jos!  

 

p.s. strange that enabling that is not necessary when running as admin.

Share this post


Link to post
Share on other sites
1 minute ago, jaja714 said:

p.s. strange that enabling that is not necessary when running as admin.

It might run due to some sort of default directory requiring elevated rights, but doubt it goes to the directory you want it to go. 

Jos


Visit the SciTE4AutoIt3 Download page for the latest versions        Beta files                                                          Forum Rules
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now