Sign in to follow this  
Followers 0
LVCVA

Does the @MyDocumentsDir macro work with Vista?

4 posts in this topic

When I use the following code:

#RequireAdmin

MsgBox(4096, "Test", @MyDocumentsDir, 10)

the body of the message box is blank. It works when run on XP but not on Vista. What am I missing?

Share this post


Link to post
Share on other sites



You do not need to be admin to request information about the current user.

This is not a problem with your code, this is a problem with the machine that is running vista.


Spoiler

 

"If a vegetarian eats vegetables,What the heck does a humanitarian eat?"

"I hear voices in my head, but I ignore them and continue on killing."

"You have forced me to raise the indifference warning to beige, it's a beige alert people. As with all beige alerts please prepare to think about the possibility of caring."

An optimist says that giving someone power DOESN'T immediately turn them into a sadist. A pessimist says that giving someone power doesn't IMMEDIATELY turn them into a sadist.

 

 

Share this post


Link to post
Share on other sites

#4 ·  Posted (edited)

Just tested your code, and it works for me. I get the full path to the mydocumentsdir on Vista.

Edited by PcExpert

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
Sign in to follow this  
Followers 0