Utility bat scripts

1. To launch a application in command-line without open a cmd window:

>start putty -load Ubuntu -l root -pw ***

 

2. copy /Y file1 directory2 ------ override without warning

    xcopy /E/Q sonatype-work L:\sonatype-work  ------ copy directory and its subdirectories without display file(s) path

3. access remote computer's file system

\\10.199.130.142\d$

prompt for usename and password(domain is mandatory, e.g.: apj142\administrator/****

扫描二维码关注公众号,回复: 1400648 查看本文章

4. net start <service-name>  --- to start a windows service in command line.

e.g.:net start OracleXETNSListener

       net start OracleServiceXE

 

5. route add 202.168.177.1 mask 255.255.255.0 202.168.177.101

猜你喜欢

转载自asran.iteye.com/blog/849157
bat