windows 编写一个脚本来依次打开、配置和运行多个程序
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/17015565/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
Making a script to open, configure, and run multiple programs sequentially
提问by Haque1
While I have experience coding in Java and c++, I have never scripted anything and would like to learn. I want to create a script or a program which:
虽然我有使用 Java 和 C++ 编码的经验,但我从未编写过任何脚本,但我想学习。我想创建一个脚本或程序,它:
Opens Avast Virus Scanner
-deep scans
-quits upon being completed
Opens Malwarebytes
-same as above
opens Spybot Search & Destroy
-same as above
Shuts down computer
I honestly don't know where to even start - should I use a batch file or something else? I would appreciate any help. Thanks
老实说,我什至不知道从哪里开始 - 我应该使用批处理文件还是其他东西?我将不胜感激任何帮助。谢谢
回答by testpattern
This is only a partial answer, but in order to open programs, you can write a batch file. I found this guide: http://www.online-tech-tips.com/computer-tips/create-windows-batch-files/
这只是部分答案,但为了打开程序,您可以编写一个批处理文件。我找到了这个指南:http: //www.online-tech-tips.com/computer-tips/create-windows-batch-files/
@echo off
start "Chrome" "C:\Program Files (x86)\Google\Chrome\Application\chrome.exe"
start "Notepad" "C:\Program Files (x86)\Notepad++\notepad++.exe"
start "VS2012" "C:\Program Files (x86)\Microsoft Visual Studio 11.0\Common7\IDE\devenv.exe"
start "Outlook" "C:\Program Files (x86)\Microsoft Office\Office14\outlook.exe"
回答by morantis
Technically you don't have to touch coding. This can be done through "scheduling" or through some free software. Is it completely necessary to do the coding yourself?
从技术上讲,您不必接触编码。这可以通过“调度”或通过一些免费软件来完成。是否完全有必要自己进行编码?