Notice
Recent Posts
Recent Comments
Link
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | ||||
4 | 5 | 6 | 7 | 8 | 9 | 10 |
11 | 12 | 13 | 14 | 15 | 16 | 17 |
18 | 19 | 20 | 21 | 22 | 23 | 24 |
25 | 26 | 27 | 28 | 29 | 30 | 31 |
Tags
- OS(operating system)
- program
- Crack(Serial Key)
- Windows 10
- game
- Backup(Restore)
- javascript
- webhard
- apm
- calculator
- H/W
- LiveCD(USB)
- FTP
- explorer
- network
- UNIX
- PC
- Update
- script
- Programming
- Command
- Disk Partition
- MS windows
- web
- portable
- Network Info(Tool)
- MS Windows PE
- Linux
- SSH
- 대항해시대
Archives
- Today
- Total
<In Story>
백그라운드 모드로 실행하기 // [BAT] [VBS] [Script] [MS Windows] [Programming] 본문
Programming/Script
백그라운드 모드로 실행하기 // [BAT] [VBS] [Script] [MS Windows] [Programming]
<In Story, Hi story, History> 2015. 4. 4. 19:38@Echo off
:_ExecuteFilePath
cls
set /p ExecuteFilePath=Execute file path =
if not exist "%ExecuteFilePath%" (
cls
echo File does not exist or the path is incorrect
echo %ExecuteFilePath%
pause > NUL
goto _ExecuteFilePath
)
echo Dim WinScriptHost > "%TEMP%\ExecuteBG.vbs"
echo Set WinScriptHost = CreateObject("WScript.Shell") >> "%TEMP%\ExecuteBG.vbs"
echo WinScriptHost.Run Chr(34) ^& "%ExecuteFilePath%" ^& Chr(34), 0 >> "%TEMP%\ExecuteBG.vbs"
echo Set WinScriptHost = Nothing >> "%TEMP%\ExecuteBG.vbs"
"%TEMP%\ExecuteBG.vbs"
del /f "%TEMP%\ExecuteBG.vbs"