Jump to content

Recommended Posts

Posted

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?

Posted

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.

 

 
Posted (edited)

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

Edited by PcExpert

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
×
×
  • Create New...