most Posted April 19, 2005 Share Posted April 19, 2005 Are there a command like %systemdrive% but for "Document and Settings"?I don't what to search for in the forum.../M Link to comment Share on other sites More sharing options...
sixpack Posted April 19, 2005 Share Posted April 19, 2005 :: %CD% - Returns the current directory string.:: %CMDCMDLINE% - Returns the exact command line used to start the current Cmd.exe.:: %CMDEXTVERSION% - Returns the version number of the current Command Processor Extensions.:: %COMSPEC% - Returns the exact path to the command shell executable.:: %ERRORLEVEL% - Returns the error code of the most recently used command. A non zero value usually indicates an error.:: %HOMEDRIVE% - Returns which local workstation drive letter is connected to the user's home directory.:: %HOMEPATH% - Returns the full path of the user's home directory. :: %HOMESHARE% - Returns the network path to the user's shared home directory. :: %LOGONSEVER% - Returns the name of the domain controller that validated the current logon session.:: %NUMBER_OF_PROCESSORS% - Specifies the number of processors installed on the computer.:: %OS% - Returns the operating system name. :: %PATH% - Specifies the search path for executable files.:: %PATHEXT% - Returns a list of the file extensions that the operating system considers to be executable.:: %PROCESSOR_ARCHITECTURE% - Returns the chip architecture of the processor. Values: x86, IA64.:: %PROCESSOR_IDENTIFIER% - Returns a description of the processor.:: %PROCESSOR_LEVEL% - Returns the model number of the processor installed on the computer.:: %PROCESSOR_REVISION% - Returns the revision number of the processor. :: %PROMPT% - Returns the command prompt settings for the current interpreter. Generated by Cmd.exe.:: %RANDOM% - Returns a random decimal number between 0 and 32767. Generated by Cmd.exe.:: %TEMP% - Returns the default temporary directories that are used by applications available to users who are currently logged on.:: %TMP% - Some applications require TEMP and others require TMP.:: %TIME% - Returns the current time.:: %date% - returns the current date.:: %USERDOMAIN% Returns the name of the domain that contains the user's account.:: %WINDIR% Returns the location of the operating system directory.:: %sysdir% - normally 'C:\WINDOWS\System32:: %allusersprofile% - path to the all users profile directory:: %userprofile% - path to the user profile directory:: %appdata% - path to the application data directory:: %commonprogramfiles% - path to common program files directory :: %systemdrive% - normally 'C:\':: %windir% - normally 'C:\WINDOWS':: %programfiles% - normally 'C:\Programme Files:: %userprofile% = C:\documents and settings\FRED (Fred is the current user logged on):: %AllUsersProfile% = C:\documents and settings\All Users%AllUsersProfile% = C:\documents and settings\All Users%userprofile% = C:\documents and settings\FRED (Fred is the current user logged on) Link to comment Share on other sites More sharing options...
tjhart85 Posted April 20, 2005 Share Posted April 20, 2005 If all you want is to goto the DOCS AND SETTINGS, use this:%AllUsersProfile%\..\The ".." tells DOS to go 1 branch up, therefore C:\DOCUMENTS AND SETTINGS\All Users becomes C:\DOCUMENTS AND SETTINGS\ Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now