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