Jump to content

@UserProfileDir <> @HomeDrive & @HomePath problem


Go to solution Solved by Jos,

Recommended Posts

Posted

I had an issue with @UserProfileDir on one PC.

@UserProfileDir is different than %USERPROFILE%

The more freak thing is that directory returned by @UserProfileDir not exist on this PC.

Any body could help in solving this mistery ?

Signature beginning:
Please remember: "AutoIt"..... *  Wondering who uses AutoIt and what it can be used for ? * Forum Rules *
ADO.au3 UDF * POP3.au3 UDF * XML.au3 UDF * IE on Windows 11 * How to ask ChatGPT for AutoIt Codefor other useful stuff click the following button:

  Reveal hidden contents

Signature last update: 2023-04-24

  • Developers
Posted

That is pretty strange as the @UserProfileDir is filled by making a call to the Environment variable USERPROFILE so this is quite strange, unless you are running the script with different credentials or different ENVIRONMENT settings. :) 

SciTE4AutoIt3 Full installer Download page   - Beta files       Read before posting     How to post scriptsource   Forum etiquette  Forum Rules 
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Posted (edited)

Ohh crap.
I analyze my code deeper.
The problem is not related only to @UserProfileDir but also to @HomeDrive and @HomePath

In one of my old script I was doing some comparitions and now I see that the problem is that 

@UserProfileDir <> @HomeDrive & @HomePath

Normally there are equal, but not in this case.
Any idea why ?

Edited by mLipok

Signature beginning:
Please remember: "AutoIt"..... *  Wondering who uses AutoIt and what it can be used for ? * Forum Rules *
ADO.au3 UDF * POP3.au3 UDF * XML.au3 UDF * IE on Windows 11 * How to ask ChatGPT for AutoIt Codefor other useful stuff click the following button:

  Reveal hidden contents

Signature last update: 2023-04-24

  • mLipok changed the title to @UserProfileDir <> @HomeDrive & @HomePath problem
Posted

Bingo.

Signature beginning:
Please remember: "AutoIt"..... *  Wondering who uses AutoIt and what it can be used for ? * Forum Rules *
ADO.au3 UDF * POP3.au3 UDF * XML.au3 UDF * IE on Windows 11 * How to ask ChatGPT for AutoIt Codefor other useful stuff click the following button:

  Reveal hidden contents

Signature last update: 2023-04-24

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
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...