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 |
Tags
- FTP
- calculator
- Update
- Crack(Serial Key)
- H/W
- UNIX
- webhard
- javascript
- Network Info(Tool)
- explorer
- script
- OS(operating system)
- LiveCD(USB)
- program
- Backup(Restore)
- web
- network
- PC
- game
- portable
- Windows 10
- apm
- SSH
- MS windows
- Disk Partition
- Command
- 대항해시대
- Linux
- Programming
- MS Windows PE
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"