VBScript: Closing a startup program programmatically in Vista/Windows 7?

You can create a . Bat file and run it during startup, after the NAS program has run. The following code will kill all instances of a process (the current code will kill notepad).

You can create a . Bat file and run it during startup, after the NAS program has run. The following code will kill all instances of a process (the current code will kill notepad) Dim WMI, KillProc Dim processName: processName = "notepad.

Exe" Set WMI = GetObject("winmgmts:\. \root\cimv2") Set KillProc = WMI. ExecQuery("Select * from Win32_Process Where Name = '" & processName & "') For Each Proc In KillProc Proc.Terminate() Next.

If so, then you could remove it from the Startup folder and either: use Explorer's "Map Network Drive" feature write a BAT file to run on Startup that does a NET USE to map write some VBScript :), using WScript.Network.MapNetworkDrive.

Bullines....thanks. As far as I know no. I added the app to the start up because the drives will not show up until you run this app.

I tried adding a network password (UN and pwd I have for the drives, and mapping the drives myself, but on start up I get an error "Windows could not reconnect some of the drives"). So I thought fine, I will add the app to start up and just close it myself after start up. This works fine, but as I stated above, I was wondering if there was a way to write some script to handle this for me....like opening the app, then closing it just to automate the connection... – Justin Jan 3 at 3:02 ...as I said I am a beginner...could you please provide a resource or example of the above solution?

It is very much appreciated! – Justin Jan 3 at 3:02.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions