ショートカットの作成処理を修正

This commit is contained in:
suti7yk5032 2024-07-25 21:13:50 +09:00
parent 765a0bd2ba
commit 2edd37fbfd
2 changed files with 5 additions and 4 deletions

View file

@ -8,8 +8,9 @@ if %ERRORLEVEL% == 0 (
if %ERRORLEVEL% == 1 (
echo タスクスケジューラーの設定でエラーが発生しました。
)
Cscript "%dir%shortcut.vbs" "%dir%" "dislocker_client.exe" "stop" "%USERNAME%"
Cscript "%dir%shortcut.vbs" "%dir%" "%dir%" "dislocker_client.exe" "stop" "シャットダウンと停止処理"
if %ERRORLEVEL% == 0 (
Cscript "%dir%shortcut.vbs" "%USERPROFILE%/Desktop" "%dir%" "dislocker_client.exe" "stop" "シャットダウンと停止処理"
echo ショートカットの作成は完了しました。
)
if %ERRORLEVEL% == 1 (

View file

@ -1,8 +1,8 @@
Set WshShell = CreateObject("WScript.Shell")
Set args = Wscript.Arguments
Set Shortcut = WshShell.CreateShortcut(args(0) & "\シャットダウンと終了処理.lnk")
Shortcut.TargetPath = args(0) & args(1)
Shortcut.Arguments = args(2)
Shortcut.WorkingDirectory = args(0)
Shortcut.TargetPath = args(1) & args(2)
Shortcut.Arguments = args(3)
Shortcut.WorkingDirectory = args(1)
Shortcut.Save
WScript.Quit(0)