1. Project Requirements
Need to invoke another program on the back end and get the return result
2. First version of the environment: Windows
CMDSTR is the command parameter public boolean excutecmd (String cmdstr) {string[] cmd = new string[]{"cmd.exe", "
/C ", cmdstr};
BufferedReader br = null;
String line = null;
Runtime Runt
Reference article: http://www.cnblogs.com/caikehe/archive/2013/01/12/2858017.htmlBatch file contents:Set Path=d:\program Files (x86) \microsoft Visual Studio 10.0\vc\binSet Include=d:\program Files (x86) \microsoft Visual Studio 10.0\vc\includeSet Lib=d:\program Files (x86) \microsoft Visual Studio 10.0\vc\lib?Then copy the corresponding missing file to the appropriate file.One is Mspdb100.dll, put into the bin.One is kernel32.lib, put into Lib.Then, CMD, press into CL Xxx.cppXxx.exe is generate
SC is a command-line program used to communicate with the Service Control Manager.
Usage:
SC
The option You can type "sc [command]" to get further help for the command
Command:
Query-----------The state of the service,
Or enumerate the state of the service type.
Queryex--
Author: shoudi Source: China Computer Education News
Installing and uninstalling programs in Windows is very easy. Generally, you can easily complete the installation and uninstallation wizard. However, there are still some little-known tips for installing and uninstalling Windows programs. Using the Rundll32 command to insta
Interface "Local Area Connection" configurationDHCP Enable NoIP Address 192.168.1.20Subnet Mask 255.255.255.0Default gateway: 192.168.1.1gatewaymetric:0InterfaceMetric 0Statically configured DNS servers: 192.168.1.1211.90.88.129Statically configured WINS servers: noneWhich prefix to register with: just the main
DHCP is already enabled on this interface.
Interface "Local Area Connection" configurationDHCP enabled isInterfaceMetric 0DHCP-configured DNS servers: 221.228.255.1218.2.135.1DHCP-config
create Test3 binpath= "C:\Users\Administrator\Desktop\win32srvdemo\win32srvdemo\Debug\ Win32srvdemo.exe " @net start test3 @sc config test3 start= AUTO @echo off @echo. @pause 2. Close the service@echo. Service off @echo off @net stop test3 @echo off @echo. Close the end! @pause3. Delete Service@echo. Service removal @echo off @sc Delete test3 @echo off @echo. Delete End! @pauseThird, about SCcan refer to a Netizen's blog---SC Command
How to Use the mklink command to DIY your own Windows Live Writer -- installing and saving the blog to drive D Windows Live Writer is the best offline blog writing software, but the disadvantage is that it is forcibly installed on drive C, the written blog post is also on drive C. Next we will introduce how to move this article to drive D. For example, create two
Install and deploy the. net program installation command for .. Windows Services and deploy. net
@ Echo offInstallutil.exe program directory F: \ test \ TestWindows.exe service program directory@ SC start "service name"@ SC config "service name" start = startup method: AUTO@ Echo off@ Echo service installation and startup completedPause
Example:
@ Echo offC: \
Not much nonsense. It's more straightforward to look at the command line!
1. directly use cmd to perform service operations
1. Install the service
SC create test3 binpath = "C: \ Users \ Administrator \ Desktop \ win32srvdemo \ win32srvdemo \ debug \ win32srvdemo.exe"
Test3 indicates the created Service name. The binpath is followed by the path wher
In the VDI project, often encountered some applications, through the administrator can open the use of normal, but ordinary domain users, will not be able to use the application, this time there may be permissions issues, generally we find security options, give the installation directory all permissions, but sometimes ordinary domain users can not open the application normally, The best solution, which can be given by command, This
1. Installation Services%systemroot%\microsoft.net\framework\v4. 0.30319 \installutil.exe D:\WiseMES\MES. Windowsservice.exenet Start Aoiservicesc config aoiservice start= autopause2. Uninstall Service%systemroot%\microsoft.net\framework\v4. 0.30319\installutil.exe/u D:\WiseMES\MES. Windowsservice.exepause3. Command parameter descriptionnet start service Name//start service net STOP service name//stop service with SC to open the disabled service, the
First download the installation package to the MongoDB site http://www.mongodb.org/Choose according to your operating system type and 32/64-bit.
Installing on Windows
Unzip the installation package and then create a directory for the data file, MongoDB the default C:\data\db as the data directory, or create other empty directories to save.
Set up the data directory, open the command prompt (Cmd.exe), int
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.