简体   繁体   中英

how to run command prompt in .Bat file

I read many website for finding my answer but I couldn't understand many of them.
So I need your help, I want make one bat file for run Command prompt commands and save my time.
This is my command :

dispatch -V  
dispatch list  
dispatch start 192.168.1.15@1 192.168.1.20@1 --http  

And It Doesn't have to exit after these code.
Thanks

@echo off
dispatch -V  
dispatch list  
dispatch start 192.168.1.15@1 192.168.1.20@1 --http  
pause >nul


Explanation:

1) @echo off removes

Microsoft Windows [Version 6.3.9600] 
(c) 2013 Microsoft Corporation. All rights reserved.

C:\Users\microsoft>

and all the current path you're accessing.

2) pasue >nul don't show Press any key to continue... , if you want it to display on console, change it to pause .

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM