windows start

C:\Users\zwf\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Startup

 

 

 

java -version
pause

 

 

 

接着,我们重启下我们的计算机:

 

 

 

 

Windows 系统中,可以使用 `start` 命令来打开文件、文件夹、程序等,语法格式如下: ``` start ["title"] [/d path] [/i] [/min] [/max] [/separate | /shared] [/low | /normal | /high | /realtime | /abovenormal | /belownormal] [/wait] [/b] [command/program] [parameters] ``` 其中,`["title"]` 可选参数用于指定窗口的标题;`[/d path]` 可选参数用于指定程序所在的路径;`[/i]` 可选参数用于在新窗口中打开程序;`[/min]` 可选参数用于最小化新打开的窗口;`[/max]` 可选参数用于最大化新打开的窗口;`[/separate | /shared]` 可选参数用于指定打开的程序是在独立的进程中还是共享一个进程;`[/low | /normal | /high | /realtime | /abovenormal | /belownormal]` 可选参数用于指定打开的程序的优先级;`[/wait]` 可选参数用于等待程序执行完毕后再返回;`[/b]` 可选参数用于在后台运行程序。 下面是一些示例: - 打开文件:`start myfile.txt` - 打开文件夹:`start myfolder` - 打开网页:`start https://www.baidu.com` - 打开记事本:`start notepad` - 打开计算器:`start calc` - 打开命令行窗口:`start cmd` - 执行命令并等待:`start /wait cmd /c dir` 注意,在 Python 中执行 `start` 命令需要使用 `os.system()` 方法,示例代码如下: ```python import os os.system('start myfile.txt') os.system('start myfolder') os.system('start https://www.baidu.com') os.system('start notepad') os.system('start calc') os.system('start cmd') os.system('start /wait cmd /c dir') ``` 这段代码将会依次打开文件、文件夹、网页、记事本、计算器、命令行窗口,并执行 `dir` 命令。
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值