|
- 到 [C:\mis\mcpos] -> mcpos.exe -> creat shortcut
- 到 [C:\mis\] creat new [mcpos.bat] then input the code :
- @echo off
- TASKLIST|FIND "mcpos.exe"
- IF %ERRORLEVEL% equ 0 (GOTO kill)
- rem TIMEOUT /T 1
- cls
- Start "" "C:\mis\mcpos\mcpos - Shortcut" (shortcut address maybe different)
- :kill
复制代码
- @echo off
- :kill
- taskkill /im mcpos.exe /F
- TASKLIST|FIND "mcpos.exe"
- IF %ERRORLEVEL% equ 0 (GOTO kill)
- rem TIMEOUT /T 1
- cls
- Start "" "C:\mis\mcpos\mcpos - Shortcut" (shortcut address maybe different)
复制代码
creat shortcut for [mcpos.bat] to desptop, and change the icon in [C:\mis\mcpos\MCPos.ico]
打开两套McPOS脚本代码, 2 mcpos for pad order(copy another mcpos files first)
- @echo off
- :kill
- taskkill /im mcpos.exe /F
- TASKLIST|FIND "mcpos.exe"
- IF %ERRORLEVEL% equ 0 (GOTO kill)
- rem TIMEOUT /T 1
- CLS
- Start /MIN "" "C:\mis\mcpos ooh\mcpos - Shortcut"
- TIMEOUT /T 1
- Start /MAX "" "C:\mis\mcpos\mcpos - Shortcut"
复制代码
只停掉对应文件路径的mcpos.exe, 并重新启动
代码: 将名称改为具体真实的mcpos.exe文件/路径即可
- @echo off
- for /f "skip=1 tokens=1" %%a in (
- 'wmic process where "name='mcpos.exe' and ExecutablePath like '%%ooh%%'" get ProcessID'
- ) do (
- if not defined PID set "PID=%%a"
- )
- taskkill /PID %PID% /F
- Start /MIN "" "C:\mis\mcpos ooh\mcpos - Shortcut"
复制代码
|
|