|
|
|||||||||
|
|||||||||
|
|||||||||
| |
||
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
||||
|
||||
|
VBScript - Keep DOS window open
We have several .vbs files that we run using the following shortcut in a windows command:
Code:
cscript c:\directory\file_name.vbs this opens a DOS window when the application starts to run. after it is finished it closes the window. i have several messages, throughout the process, displayed on the screen. unfortunately if i go away from the computer before it finishes, i never see the messages that were displayed. is there a way to keep the window open until i close it manually after the .vbs file completes?
__________________
Come JOIN the party!!! Quote of the Month: Retirement: Because you've given so much of yourself to the company that you don't have anything left we can use. Questions to Ponder: What do you do when you see an endangered animal eating an endangered plant? iif([sarcasm]=true,iif([you have to ask]=true,"didn't work","ha ha ha"),"not sarcasm") copyright© 2008 sbenj69 |
|
#2
|
||||
|
||||
|
Modify your command line and launch via cmd.exe with the /k switch.
cmd.exe /k cscript c:\directory\file_name.vbs
__________________
Click the image if at any point you don't like my decision.Scripting problems? Windows questions? Ask the Windows Guru! |
|
#3
|
||||
|
||||
|
never even thought of that ... thanks nilpo.
|
|
#4
|
||||
|
||||
|
Quote:
![]() |
![]() |
| Viewing: ASP Free Forums > System Administration > Windows Scripting > VBScript - Keep DOS window open |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|