Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Closing a window
Message
From
17/02/2000 15:54:42
 
 
General information
Forum:
Visual Basic
Category:
VBScript
Miscellaneous
Thread ID:
00333092
Message ID:
00333700
Views:
16
>>>>How can I close an existing window that was open during startup using vbscript
>>>>
>>>
>>>Depending on the application that opened the Window, using the Wscript.Shell's AppActivate and SendKeys, mechanism, or manipulation via the Shell.Application's Windows collection may both work.
>>
>>The window is a command prompt window (it's a batch file that is placed in the startup folder).
>>
>
>Add an Exit statement to the end of the batch file

This doesn't work and the reason is that I have a batch file that calls another batch file ( this is done so that I don't have to login to a users system as admin to edit the first batch file yada yada) and that batch file is starting groupwise notify therefore the first batch file window remains open until I explicitely close it.

Claude
Claude Gosselin
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform