Majestic userprofile. Environment Variables — Environment variables

Majestic userprofile.  Environment Variables — Environment variables
Majestic userprofile. Environment Variables — Environment variables

If the .USERPROFILE file is known to your system, you can open it by double-clicking the mouse or pressing ENTER. This operation will launch the applications associated with the .USERPROFILE file installed on the system. If the system meets the file for the first time and there are no corresponding associations, then the action will end with the system's proposal, find the appropriate software on a computer or the Internet.

Sometimes it happens that the wrong program is assigned to serve the .USERPROFILE file type. This happens as a result of the action of malicious programs such as viruses or malware, but most often this is the result of an erroneous combination of the application with the .USERPROFILE file extension. If, while serving a new .USERPROFILE file type, we specify the wrong program to the system, the system will erroneously recommend its use whenever a file of this type is encountered. In this case, you should try to select the appropriate application again. Right-click on the .USERPROFILE file, and then select the option "Open With ..." from the menu, then "Choose default program" . Now select one of the installed applications from the list above and try again.

Programs that will open the .USERPROFILE file

Manual editing of the Windows Registry

If our system cannot cope with the .USERPROFILE extension and failed all the automatic and semi-automatic methods of teaching it this art, manual editing of the Windows registry remains. This registry stores all the information related to the operation of our operating system, including the connection of file extensions with programs for their maintenance. Team REGEDIT inscribed in the window „search for programs and files” or "run in the case of older versions of the operating system, gives us access to the registry of our operating system. All operations carried out in the registry (even not very complex ones regarding the .USERPROFILE file extension) have a significant impact on the operation of our system, therefore, before making any modifications, you should make sure that you have made a copy of the current registry. The section we are interested in is the key HKEY_CLASSES_ROOT. Next instruction shows, step by step, how to modify the registry, and specifically the registry entry containing information about the .USERPROFILE file.

Step by step

  • Press the “start” button
  • In the "find programs and files" window (in older versions of Windows it is the "Run" window) enter the "regedit" command and then confirm the operation with the "ENTER" key. This operation will launch the system registry editor. This tool will allow not only to view existing records, but also to modify, add or delete them manually. Due to the fact that the registry of the Windows system is key to its operation, all operations carried out on it should be performed judiciously and consciously. Careless removal or modification of an inappropriate key can permanently damage the operating system.
  • Using the ctr+F key combination or the Edit menu and the "Find" option, find the .USERPROFILE extension you are interested in by typing it in the search engine window. Confirm by pressing OK or using the ENTER key.
  • Backup copy. It is extremely important to back up the registry before making any changes to it. Each change has an impact on the operation of our computer. IN extreme cases an erroneous modification of the registry can make it impossible to restart the system.
  • The value you are interested in regarding the extension can be manually edited by changing the keys assigned to the found extension.USERPROFILE. Here you can also create your own desired entry with the extension a.USERPROFILE if this is not in the registry. All available options are in the manual menu ( right button mouse) or in the "Edit" menu after placing the cursor in the appropriate place on the screen.
  • When finished editing the entry for the .USERPROFILE extension, close system registry. The introduced changes will come into effect after restarting the operating system.

Windows environment variables - accent on "Y" in the second word (the meaning of the phrase lies in the genitive case and the right stress: variables of what? - environments!), in English Windows versions - environment variable)

Windows environment variables are used to configure operating systems. Not every user needs to understand these settings and get into these variables, but there are a couple of variables that all users need to be aware of. personal computers. It's about about variables responsible for temporary storage of files - TEMP And TMP.



The default value of user temporary (TEMP) variables is − %USERPROFILE%\Local Settings\Temp,

The default value of system temporary variables is − \WINDOWS\Temp.

So in the first case it's usually: " C:\Documents and Settings\USER\Local Settings\Temp"

Inexpensive productive Ultrabook:

Specifications: 14.1 inch 1920*1080 ips screen, Windows 10, 8GB RAM, 256GB M.2 SATA 2280 SSD, Wifi, keyboard light.

Due to the fact that in the operating room family Windows systems folders with temporary files for some reason are not cleared by themselves, they can accumulate a huge variety of different junk files, reaching a total size of up to several gigabytes! Various viruses and bad scripts periodically hide among temporary files, so it is the duty of every PC user to regularly delete the contents of temporary folders.

For the convenience of removal, it is better to change the default path to a simpler one, the best option is " c:\temp".

How to change Windows TEMP and TMP environment variables? - Very simple:

1. Right click on the icon " My computer" on the desktop (if it is a full icon, not a shortcut) or through the menu Start -> My Computer -> Properties:

2. Go to tab " Additionally and click on the button below Environment Variables":

3. Top window" User Environment Variables" select the first line first (the TEMP variable) and press the button " Change":



4. Correct the value of the variable to a simpler one - " c:\temp":

5. Repeat steps 3 and 4 for the variable TMP:

The result should be:

6. Press alternately 2 times " OK".



In principle, the same can be done with command line by running the command: SET TEMP=C:\TEMP

All Windows environment variables:

ALLUSERSPROFILE Specifies the location of the All Users profile (local variable)
APPDATA Specifies the location of the directory where programs store data by default (local variable)
CD Specifies the name of the current directory (local variable)
CMDCMDLINE Specifies the command-line options that were used to launch the current instance of the CMD.EXE program (local variable)
CMDEXTVERSION Specifies the version number of the current shell extension (system variable)
COMPUTERNAME Specifies the computer name (system variable)
COMSPEC Specifies the exact path to the shell executable (system variable)
DATE Indicates the current date. The format is the same as for the date /t command. Value generated by the shell (system variable)
ERRORLEVEL Specifies the error level code latest program. A non-zero value most likely indicates an error (system variable)
HOMEDRIVE Specifies the drive letter of the local workstation attached to the home directory. The variable is defined based on the path to the home directory. The user's home directory is defined in the Local Users and Groups snap-in (system variable)
HOMEPATH Indicates full path to the user's home directory. The variable is defined based on the path to the home directory. The user's home directory is defined in the Local Users and Groups snap-in (system variable)
HOMESHARE Indicates network path to the user's shared home directory. The variable is defined based on the path to the home directory. The user's home directory is assigned in the Local Users and Groups snap-in (system variable)
LOGONSERVER Specifies the name of the domain controller on which the current session with the system is authorized (local variable)
NUMBER_OF_PROCESSORS Indicates the number of processors installed in the computer (system variable)
OS Specifies the version of the operating system. Windows XP/XP operating systems are referred to as Windows_NT (system variable)
PATH Specifies the search path for executable files (system variable)
PATHEXT Specifies a list of extensions that are recognized by the operating system as executable file extensions (system variable)
PROCESSOR_ARCHITECTURE Specifies the processor architecture type. Possible values: x86 and IA64 (system variable)
PROCESSOR_IDENTIFIER Specifies the processor description (system variable)
PROCESSOR_LEVEL Specifies the model number of the processor installed in the computer (system variable)
PROCESSOR_REVISION Specifies the processor model version number (system variable)
PROMPT Specifies the command line prompt options for the current interpreter. Generated by CMD.EXE interpreter (local variable)
RandOM Specifies a random decimal number between 0 and 32767. Generated by CMD.EXE (system variable)
SYSTEMDRIVE Specifies the letter of the drive on which the root is located. Windows directory(system variable)
SYSTEMROOT Specifies the path to the Windows root directory (system variable)
TEMP or TMP Specifies the path to the default temporary directories. These directories are used by applications available to the logged in user. Some applications require the value of the TEMP variable, while others require TMP (system and user variables, respectively)
TIME Indicates current time. The format is the same as for the time /t command. Generated by CMD.EXE interpreter (system variable)
USERDOMAIN Specifies the name of the domain in which the Account user (local variable)
USERNAME Specifies the name of the user currently logged into the system (local variable)
USERPROFILE Specifies the path to the profile current user(local variable)
WINDIR Specifies the path to the operating system directory (system variable)



To access the value of a variable, you must put a % sign before and after its name, for example: echo % NUMBER_OF_PROCESSORS%

IN Windows environment Server is everywhere - on the command line, scripts, etc. you can use environment variables, which give an additional degree of freedom, as they allow you not to be tied to absolute values, replacing them with specific system variables. But, as practice has shown, many users are poorly oriented in Environment Variables. This table intended to be a hint in everyday work with environment variables Windows Server.

List of Environment Variables

%ALLUSERSPROFILE% \Documents and Settings\All Users
%APPDATA% \Documents and Settings\(username)\Application Data
%CD% Returns the path to the current folder
%CMDCMDLINE% Returns the command string that launched this instance of Cmd.exe
%CMDEXTVERSION% Returns the version number of the current command handler extensions
%COMPUTERNAME% (computer name)
%COMSPEC% \Windows\System32\cmd.exe
%DATE% Returns the current data. Uses the same format as the date /t command. Created by Cmd.exe command
%ERRORLEVEL% Returns the error code of the last command used. A non-zero value usually indicates an error.
%HOMEDRIVE% The drive with the user's home directory. Specified in the Local Users and Groups snap-in
%HOMEPATH% \Documents and Settings\(username) Specified in the Local Users and Groups snap-in
%HOMESHARE% The network path to the user's shared home directory. Specified in the Local Users and Groups snap-in
%LOGONSERVER% Returns the name of the domain controller that authenticated the current session
%NUMBER_OF_PROCESSORS% Specifies the number of processors installed on the computer
%OS% Returns the name of the operating system.
%PATH% C:\Windows\System32\,C:\Windows\,C:\Windows\System32\Wbem
%PATHEXT% Returns a list of file extensions that are considered executable by the operating system
%PATHEXT% .COM, .EXE, .BAT, .CMD, .VBS, .VBE, .JS, .WSF: .WSH (list of executables)
%PROCESSOR_ARCHITECTURE% Returns the processor architecture. Values: x86, IA64
%PROCESSOR_IDENTFIER% Returns a description of the processor
%PROCESSOR_LEVEL% Returns the model number of the processor installed on the computer
%PROCESSOR_REVISION% Returns the processor revision number
%PROGRAMFILES% \Program Files
%PROMPT% Returns the command line options for the current Cmd.exe interpreter (usually $P$G)
%RANDOM% Returns an arbitrary decimal number from 0 to 32767. Created by the Cmd.exe command
%SYSTEMDRIVE% Returns the name of the drive containing the Windows root directory (i.e. the system directory)
%SYSTEMROOT% \Windows
%SYSTEMROOT% System returns the location of the Windows root directory.
%TEMP% and %TMP% :\DOCUME~1\(username)\LOCALS~1\Temp
%TIME% Returns the current time. Uses the same format as the time /t command. Created by Cmd.exe command
%USERDOMAIN% Returns the name of the domain containing the list of user accounts
%USERNAME% (username)
%USERPROFILE% \Documents and Settings\(username)
%USERPROFILE%\Application Data AppData
%USERPROFILE%\Cookies Cookies
%USERPROFILE%\Desktop Desktop
%USERPROFILE%\Favorites Favorites
%USERPROFILE%\Local Settings local settings
%USERPROFILE%\Local Settings\Application Data Local AppData
%USERPROFILE%\Local Settings\History History
%USERPROFILE%\Local Settings\Temporary Internet Files Cache
%USERPROFILE%\My Documents My Documents
%USERPROFILE%\My Documents\My Music My Music
%USERPROFILE%\My Documents\My Pictures My Pictures
%USERPROFILE%\NetHood nethood
%USERPROFILE%\PrintHood Print Hood
%USERPROFILE%\SendTo sendto
%USERPROFILE%\Start Menu start menu
%USERPROFILE%\Start Menu\Programs Programs
%USERPROFILE%\Start Menu\Programs\Startup startup
%USERPROFILE%\Templates Templates
%WINDIR% \Windows

In addition, there are pseudo-variables in the environment of the popular file manager Total Commander:

Name Description Example
%$APPDATA% application data C:\Documents and Settings\MAIN\Application Data
%$DESKTOP% Desktop C:\Documents and Settings\MAIN\Desktop
%$PERSONAL% My Documents C:\Documents and Settings\MAIN\My Documents
%$PROGRAMS% Main Menu\Programs C:\Documents and Settings\MAIN\Main Menu\Programs
%$STARTMENU% Main menu C:\Documents and Settings\MAIN\Main Menu
%$STARTUP% C:\Documents and Settings\MAIN\Main Menu\Programs\Startup
%$MYPICTURES% My drawings C:\Documents and Settings\MAIN\My Documents\My Pictures
%$MYMUSIC% My music C:\Documents and Settings\MAIN\My Documents\My Music
%$MYVIDEO% My video C:\Documents and Settings\MAIN\My Documents\My Video
%$LOCAL_APPDATA% Local Settings\Application Data C:\Documents and Settings\MAIN\Local Settings\Application Data
%$FONTS% Fonts C:\WINDOWS\Fonts