1
マウスとタッチスクリーンが有効になっている一般公開のキオスク。バッチ - 再起動の方法は?閉鎖を保護するか?
起動/ログイン時にスクリプトが実行されますが、手順4に進む前に、多くのユーザーが閉じるアイコンをクリックし、コマンドプロンプトをシャットダウンします。
これは、プロセスが失敗する原因です。
スタートアッププロセスがインターラプトされていないことを確認する方法を教えてください。手順4の前にコマンドプロンプトのシャットダウンをブロックする方法は?
::================ Danger Start ===============
@echo on
:start
echo "1. Please dont click that close icon and close me. I beg..."
timeout 5 > nul
echo "2. Please dont click that close icon and close me. I beg..."
tskill chrome 2>NUL
echo "3. Please dont click that close icon and close me. I beg..."
tskill node 2>NUL
:: some other tasks: Bank card, Ticket, Badge, hardware get re-activated
::================ Danger END ===============
echo "4. Uff.. crossed my finger and finally started"
@start /wait "Kiosk" "C:\Program Files (x86)\Google\Chrome\Application\chrome.exe" www.example.com
cls
echo "5. i will restart now."
timeout 5 >nul
goto start
コマンドプロンプトを表示せずにスクリプトをサイレントモードで実行するとどうなりますか? – kennyzx