---
title: "Utility bat scripts"
author: "asran"
date: "2010-12-22T11:57:32Z"
tags: [".net", "Access", "Ubuntu", "Windows"]
categories: ["操作系统"]
slug: "utility-bat-scripts"
draft: false
lastmod: "2011-01-04T08:24:08Z"
id: 849157
url: "https://asran.iteye.com/blog/849157"
---

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

&gt;*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/\*\*\**

 

4\. net start &lt;service-name&gt;  --- 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