File Explorer is the default file management application which comes bundled with every modern version of Windows. It allows the user to perform all basic file operations like copy, move, delete, rename and so on. It supports a number of command line arguments (switches) which can be useful in various scenarios. It's good to know them.
Runas is a very useful command on Windows OS. This command enables one to run a command in the context of another user account. One example scenario where this could be useful is: Suppose you have both a normal user account and an administrator account on a computer and currently you are logged in as normal user account. %2 is the second command line parameter, and so on till%9 (and SHIFT can be used for those after the 9th).%nx0 - the actual name of the batch file, regardless of calling method (some-batch.bat).
RECOMMENDED: Click here to fix Windows errors and optimize system performance
You can use File Explorer command line arguments
Get into the Windows command line. Open a Windows command line window by following the steps below. If you need additional information or alternative methods for all versions of Windows, see our how to get into DOS and Windows command line page. In the Search or Run line, type cmd (short for command), and press Enter.
- How can I add command line options to an executable in a shortcut in Windows XP? For example in the shortcut properties in target I have: 'c: path to exe pogram.exe' I want to add some options.
- Command line arguments are extra commands you can use when launching a program so that the program's functionality will change. Depending on the program, these arguments can be used to add more features that includes specifying a file that output should be logged to.
- Command-line options for msiexec.exe for Windows Installer 3.0 and earlier. Provides a table showing options, parameters, and descriptions. Examples showing how to install products and other tasks.
Before you proceed: You can test these arguments by opening the Run box (Win + R) or a command prompt instance. There you can type the commands described below.
explorer.exe /n,folder_path
The switch '/n' makes File Explorer open a new window with the specified location selected in the navigation pane. If you omit the folder path, Windows 10 opens the Documents folder with This PC selected on the left or Quick Access. In very old Windows versions like XP, this switch made Explorer open a new window without the folder tree on the left. In Windows 10, 8, 7, it does not hide the left area.
explorer.exe /e,folder_path
The /e switch opens Windows Explorer expanded to the specified folder. In very old Windows versions like XP, this switch made Explorer open a new window with the folder tree on the left expanded to the specified folder. In Windows 10, it has exactly the same behavior as the '/n' switch mentioned above unless you enable the option 'Expand to current folder'.
explorer.exe /root,folder_path
Opens File Explorer with the specified folder as the root (topmost item in the breadcrumbs bar). For example, to open the folder 'C:appsfirefox beta', I need to execute the following command:
When a folder is opened as root, Alt + Up no longer works to go up one level.
The specified location will appear as a separate item in the navigation pane on the left.
explorer.exe /select,file_or_folder_path
This switch tells File Explorer to open with the specified file or folder selected in file view (right pane). For example, to open the folder 'C:appsfirefox beta' with firefox.exe selected, I need to execute the following command:
Winbuilder windows 7. The result will be as follows:
explorer.exe /separate
The explorer.exe application supports a secret hidden command line switch /separate. When specified, it forces Explorer to run in a separate process. This will open a new Explorer window directly in a separate process.
Command Line Arguments Windows 10
To check how many instances of Explorer you have running in a separate process, open Task Manager and go to the Details tab.
I covered this switch in detail in the following article: How to start File Explorer in a separate process in Windows 10.
That's it. Feel free to leave a comment if you have a question or know more command line tricks with File Explorer.
RECOMMENDED: Click here to fix Windows errors and optimize system performance
The built-in Windows tool, Disk Cleanup, which can be launched as cleanmgr.exe from the Run dialog, supports a number of interesting command line arguments which can be useful in various situations. Let's review them and see how you can use them.
RECOMMENDED: Click here to fix Windows errors and optimize system performance
You can learn the switches available for Disk Cleanup by entering the following command in the Run dialog:
See the following screenshot:
The list is as follows:
Afterwards, I was told by a local that I was proceeding in opposite direction.This is a SERIOUS ISSUE and as such, requires to be addressed IMMEDIATELY by Map Factor.Nijanand. motorway signs Help us translate Navigator to your. Pros & Cons MapFactor Navigator is a free turn-by-turn GPS navigation app for Windows phones, tablets and roads. advanced get in lane warnings. Mapfactor gps navigation. On the Highway, I got instructions to proceed in a direction opposite Mumbai and I drove around 7 kms.
Here's what those switches mean.
cleanmgr.exe /D DRIVELETTER
Executes disk cleanup for a specific drive. The user should specify the drive letter without ':' as shown below:
The command above will launch disk cleanup for drive C:.
You can combine the /D argument with other switches of cleanmgr.exe.
cleanmgr.exe /SAGESET
The SAGESET key allows you to create a preset of selected checkboxes in cleanmgr.exe. Once this is done, you can launch the preset using the /SAGERUN option. The syntax is as follows:
The command needs to be executed elevated (as administrator).
Where 'number' can be any value from 0 to 65535. The options you select during the SAGESET session will be written to the Registry and stored there for further use. The command needs to be executed elevated.
Use it as follows:
- Open an elevated command prompt.
- Type the following command
Suppose you use the number 112, for example:
- Tick the options you want to be enabled for this preset as shown below:
- Click OK to save the preset under the number you entered in the Run dialog.
Since you started cleanmgr.exe /SAGESET:n elevated, it will be opened directly in the 'Clean up system files' mode. See the following article: How to run Disk Cleanup directly in the system files mode and speed it up.
Technically, every checkbox shown in Disk Cleanup reflects the appropriate registry subkey under the following Registry branch:
For example, the Windows Upgrade Log Files subkey reflects the same option in the user interface of the app.
For every value you check, it will be marked under the StateFlagsNNNN DWORD value, where NNNN is a number you passed to the SAGESET argument. I have the value StateFlags0112 there for my /SAGESET:112 command:
cleanmgr.exe /SAGERUN
The argument /SAGERUN allows the user to launch the preset configured earlier with the /SAGESET:n command. Macrium reflect 7 discount. The syntax is as follows:
Use the same number that you used for the previous /SAGESET:number command.
Combining with the previous example, you should do the following.
- Open an elevated command prompt.
- Type the following command
Suppose you use the number 112, for example:
- Tick the options you want to be run for this preset as shown below:
- Click OK to save the preset under number 112.
- Now, type cleanmgr.exe /SAGERUN:112 in the Run dialog. It will start clean up using the preselected options automatically.
The cleanup process will be started immediately, without any confirmation prompt. Disk Cleanup will also be closed automatically.
If the /D argument is not specified for this command, it will be applied to all drives.
You can see the article How to run Disk Cleanup directly in the system files mode and speed it up.
The following commands are not documented. To discover them, I used Sysinternals Process Monitor and logs of the cleanmgr utility. If they don't behave as described, please correct me in the comments.
cleanmgr.exe /TUNEUP
The command is similar to the described SAGESET functionality. In Windows 10, it does exactly the same thing. Like the SAGESET switch, it writes presets to the Registry. It can be used instead of SAGESET. The syntax is as follows:
The command needs to be executed elevated.
Windows Powershell Command Line Parameters
If you previously configured the number specified with the TUNEUP switch with SAGESET, it will reflect the changes you made:
This switch is not documented, so Microsoft can remove or change its behavior at any moment. I recommend you to use SAGESET instead.
cleanmgr.exe /LOWDISK
This switch is used when Windows notifies the user that he is running out of disk space on a drive. When you click the notification, Disk Cleanup opens with all checkboxes checked by default. You can execute it from the Run dialog as follows:
See the following screenshot:
Once you press the Enter key, it will analyze the drive and show the familiar user interface, but with all checkboxes checked by default:
You can run the command from an elevated command prompt to make it switch to the system files mode.
cleanmgr.exe /VERYLOWDISK
It is the same as the /LOWDISK disk switch, but it will cleanup all files automatically. It won't show you a confirmation, but will show you a dialog to indicate how much free disk space you have now.
Syntax:
Run the command from the elevated command prompt to make it switch to the system files mode.
cleanmgr.exe /SETUP
The setup switch analyzes the system files left from a previous Windows version. For example, if you upgraded from Windows 7 to Windows 10, running this switch is useful. It also needs to be executed from an elevated command prompt:
Windows Command Line Parameters To Shortcut
The application will calculate the space used by files from the previous Windows installation. It is similar to the cleaning Previous Windows Installation files using the user interface of Disk Cleanup in regular mode. The application will analyze the following locations:
The application will not clean them up automatically. It won't show a user interface either. Instead it will write two log files which you can inspect:
cleanmgr.exe /AUTOCLEAN
It's the same as above, but the application will remove files from the previous Windows installation or the previous in-place upgrade automatically.
The following folders will be removed:
The application will write the results to the following log files:
No user interface will be shown.
The syntax is as follows:
Windows Command Line Cheat Sheet
The command needs to be executed elevated, e.g. you need to launch it from an elevated command prompt instance.
Windows Command Line Commands
That's it.
Is 3dxchat free. Order 3DXChat account here and get access to the virtual world for adults. Join Now Members 3DXChat - Multiplayer Online 3D Sex Game, Community & Virtual World.
Don't forget to tell us if some commands don't behave as described for you. Feel free to leave a comment if you have a question or a suggestion.
Windows Command Line Parameters E
RECOMMENDED: Click here to fix Windows errors and optimize system performance