p = new System.Diagnostics.Process (); Set Program Namep.StartInfo.FileName = Mathonpath;P.startinfo.arguments = @ "c:/";P.start ();If you want to open c:/with the Explorer, you can do this:System.Diagnostics.Process.Start ("Explorer.exe", @ "c:/");More people might ask, "I'm going to open the Add or Remove Programs Panel or the control Panel, OK?" "The answer is YES!"How to do? The answer is to call rundll32.exe, for example:To open the panel for Ad
://www.baidu.com"); Of course, you can also use other browsers, such as proud tour instead of IE: string mathonpath = @ "c:/program Files/maxthon//maxthon.exe"; System.Diagnostics.Process p = new System.Diagnostics.Process ();//Set Program name p.startinfo.filename = Mathonpath; p.startinfo.arguments = @ "c:/"; P.start (); If you want to open c:/with the Explorer, you can do this: System.Diagnostics.Process.Start ("Explorer.exe", @ "c:/"); More people might ask, "I'm going to open the Add o
This question is from the Forum. The original question is how to achieve win + L. The first reaction is to simulate the buttons. In fact, developers should not use this idea when they come up. If they cannot, they should consider pressing the buttons.
The solution code is as follows:Using
System;
Namespace
Leleapplication2
...
{
Class
Program
...
{
Static
Void
Main (
String
[] ARGs)
...
{
System. Diagnostics. PROCESS p
=
New
System. Diagnostics. Process ();
P. startinfo. workingdir
First, please make a small experiment (please save the results of the program you are running in advance ):
Click Start-process-ms-dos ", go to the DOS window, then click "rundll32.exe user.exe, restartwindows", and then press the Enter key. Then you will see that the machine has been restarted!
Of course, the function of rundll is not just to restart your machine. The difference between the two lies in that the former is a 32-bit link database,
First, please make a small experiment (please save the results of the program you are running in advance ):
Click Start-process-ms-dos ", go to the DOS window, then click "rundll32.exe user.exe, restartwindows", and then press the Enter key. Then you will see that the machine has been restarted!
Of course, the function of Rundll is not just to restart your machine. In fact, the Rundll operator, as the name suggests, executes the Dll
In addition, the r
Control Panel command using Control.exe
Sysdm.cpl will open the System Properties appletACCESS.CPL: Accessibility OptionsAppwiz.cpl: Add/Remove ProgramsDesk.cpl: ShowFax.cpl: Fax WizardHdwwiz.cpl: Add/Remove HardwareIntl.cpl: Regional Language OptionsJoy.cpl: Game controllerLICCPA.CPL: LicenseMain.cpl: MouseMlcfg.cpl: MailMmsys.cpl: Sound and Audio DevicesMODEM.CPL: Phone and Modem OptionsNcpa.cpl: Network connectionNetcpl.cpl: Network and dial-up connectionsNwc.cpl:Netware Client ConnectionsOd
folders, files, URLs can create shortcuts, control Panel settings can also create shortcuts, the following is a shortcut to the command, use: In the desktop or folder in the blank right click, select New, shortcut, "Please type the location of the project" Enter the following command, Then next enter the name of the shortcut. This completes a control Panel shortcut, as well as the Start menu, run, enter the following command to open the Control Panel directly in a setting. Control PanelModule: c
You can create shortcuts for folders, files, and URLs. You can also create shortcuts for settings in the control panel. The following is a shortcut command. Usage: Right-click the blank area of the desktop or folder, select "new" and "shortcut". In "Enter the project location", enter the following command, and then enter the shortcut name. In this way, a shortcut of the control panel is completed. You can also run the following command in the Start menu to directly open a setting in the control
Go to original
Control Panel
Module: control.exe
Command: rundll32.exe shell32.dll, control_rundll
Result: The control panel window is displayed.
Auxiliary options
Module: Access. CPL
Command: rundll32.exe shell32.dll, control_rundll access. CPL, 5
Result: Auxiliary options/General are displayed.
Command: rundll32.exe shell32.dll, control_rundll
Start Control Panel Encyclopedia
Control PanelModule: control.exeCommand: Rundll32.exe shell32.dll,Control_RunDLLResults: The Control Panel window is displayed.Example:Dim xx = Shell ("rundll32.exe shell32.dll,Control_RunDLL")
Accessibility OptionsModule: access.cplCommand: rundll32.exe shell32.dll,Control_RunDLL access.cpl,,5Results: Show secondary options/gen
When writing a program today, you need to open the "Date and Time Attributes" window in the control panel and start to think that it corresponds to a certain EXE file, and then remember that it corresponds to a certain CPLSuch as system. Diagnostics. process. Start ("rundll32.exe", "shell32.dll, control_rundll TimeDate. Cpl"); the "Date and time properties" window can be opened.
Other windows correspond to the following:Auxiliary optionsModule: Access
Find the corresponding CPL and enable a new thread to open it,
For example, system. Diagnostics. process. Start ("rundll32.exe", "shell32.dll, control_rundll TimeDate. Cpl"); opens the corresponding "Date and time properties" window.
Other windows correspond to the following:Auxiliary optionsModule: Access. CPLCommand: rundll32.exe shell32.dll, control_rundll access. CPL, 5Result: Auxiliary options/General
the default value of hkey_classes_root // cplfile // shell // cplopen // command in the registry), where cplfile. CPL is the CPL file, and itemno is the project number. In the Delphi program, you can use the winexec or CreateProcess function to call the CPL file, so as to call the Control Panel setting project. Unzip shell32.dll, control_rundll inetcpl. CPL, 3', sw_shownormal); "; to resolve the 2000 problem, the" date "attribute page of" region Settings "must be called for the two-year input e
javasrundll32.exe shell32.dll and control_rundll cplfile. CPL, itemno "(see the default value of hkey_classes_root/cplfile/Shell/cplopen/command in the registry), where cplfile. CPL is the CPL file, and itemno is the project number. In the Delphi program, you can use the winexec or CreateProcess function to call the CPL file, so as to call the Control Panel setting project. Unzip shell32.dll, control_rundll inetcpl. CPL, 3', sw_shownormal); "; to resolve the 2000 problem, the" date "attribute p
Do you want to start the various settings in the Control Panel while the program is running, using the following methods:
var x:cardinal;Begin{Start Control Panel}X:=winexec (rundll32.exe shell32.dll,control_rundll,9); {Secondary Option Properties-keyboard}X:=winexec (rundll32.exe shell32.dll,Control_RunDLL access.cpl,,1,9);{Secondary option Properties-sound}X:=winexec (
[System] adds/deletes virtual printers and virtual printers in windows.
Because the project needs to add multiple virtual printers to the windwos system (which can print the paper normally), find out the system function.
Run rundll32 printui. dll and PrintUIEntry in CMD and get the following prompt in the pop-up box.
Usage: rundll32 printui. dll, PrintUIEntry [options] [@ commandfile]/a [file] binary file n
http://blog.csdn.net/Eastmount/article/details/18821221This article is mainly about the project "software for the use of records of personal computers" in the article about clearing browser cookies, ie temporary files, recent usage history and so on. The basic idea line of this article is to first understand the internet history of the common file path in Windows. The file Delete method deletes the contents of the file, but many files cannot be read, and the final solution is to remove the cache
static void open notepad () {process. start ("notepad.exe");} public static void open calculator () {process. start ("calc.exe");} public static void open the DOS command window () {process. start ("cmd.exe");} open the Registry () {process. start ("regedit.exe");} public static void open the palette () {process. start ("mspaint.exe");} public static void open the WordPad () {process. start ("write.exe");} open the player () {process. start ("mplayer2.exe");} open Resource Manager () {process.
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.