Welcome to my turoial on how to start multiple programs using one shortcut. You may probably be wondering how this is possible. Well this tutorial will use a language from MS-DOS called batch. I am not sure whether it is "language", but I do know that it is a way to program for MS-DOS. Batch is simply a way to run several MS-DOS commands with just one command. All batch files are run through Command Prompt, but they can be accessed with shortcuts also. Here are a few requirements for this tutorial.
Requirements
Windows XP (I tested this on XP, but it should work on many Windows systems)
Some programs
Notepad
Ok, let's go on and start our tutorial.
First, open up Notepad and start a new document. We will put all of our code here.
First we need to turn off command echoing. This is not neccessary, but can be quite annoying. This will only help if you are going to directly run the command through CMD. Type in this code
CODE
@echo off
That will turn off our command echoing.
Now to running the programs. I will use two programs as an example. I will also use fake folders and stuff.
Type in this code after the first command.
CODE
rem Guild Wars cd C:\Program Files\Guild Wars start gw.exe rem Firefox cd C:\Program Files\Mozilla Firefox start firefox.exe
That code will change to those directories then run the appropriate executable file.
Those are example directories. The rem command simply means a comment.
This is the template for the programs.
CODE
cd Path to program start Program .exe file
That is all to run the program.
Well, let's add one more command to close CMD after it is finished. This also will make it seem like CMD did nothing.
CODE
exit
So our final code should look like this:
CODE
@echo off rem Guild Wars cd C:\Program Files\Guild Wars start gw.exe rem Firefox cd C:\Program Files\Mozilla Firefox start firfox.exe exit
Ok after you have your code written, save the file as a .bat file. The file name is up to you. The file name though will be the command name. I will call mine guildfire.bat.
Ok, we have our program. What about the shortcut? Well I am going to explain that.
After you have the file saved. Be sure to remember where you saved it.
On your desktop, right click and create a new shortcut. When it asks you about the target, direct the target to the batch file we just made. Change the name and save. You just made a program starting program.
If you want to change the image To change the shortcut's icon, simply go to it's properties and it should have a place to change the Icon Image. Simply change it with something like a BMP file. The best image size for the icon is about 50x50.
Thank you for reading this tutorial and I hope you have fun.
I was actually looking for something just like this. Thank you so much.
Now, just one question to take it a step further. Is it possible to write a shortcut that terminates one application and launches another? For example, I use RocketDock on my desktop because I prefer it to the native quicklaunch. I want to be able to launch games off RocketDock, but whenever I do, there is a strange flicker and I'm forced to ALT+TAB back to the desktop and shut it off manually. Is there a way to write a shortcut that will both close RocketDock and launch another app?
I've come across a couple more 'quirks' as I've been using it.
The filename cannot have spaces - had to replace them with underscores '_'
I had one path that had an ampersand '&' in it - it couldn't open the file.
These may just be typical characteristics of using DOS commands, I don't know much about that.
I have a .bat file that executes the following when I want to play Dota on dota-league:
CODE
@echo off cd C:\Program Files\Games\Warcraft III\DGN start DotAClient.exe cd.. start inventory.exe "Frozen Throne.exe"
In the folder "C:\Program Files\Games\Warcraft III\DGN" I have the DotaClient and in the folder under it "C:\Program Files\Games\Warcraft III" I have Frozen Throne and an inventory add-on. With the command "cd.." (without "") I can go one folder down in dos and it also works when coding.
My point here is, that in most cases you don't (but to be sure you usually can) need to add start in front of the application you're executing and especially if the application has two words cut the start and just add "program name .exe" and it will execute it.
To fix the problem with multiple drives, you need to first change to that drive and then change to the directory of the .exe. For example, if you have Guild Wars.exe on your C: drive and Firefox.exe on your D: drive, you code would be:
rem Guild Wars cd C:\Program Files\Guild Wars start gw.exe rem Firefox rem changing to D: drive D: rem changing to the root of D: cd \ cd D:\Program Files\Mozilla Firefox start firefox.exe
As far as a path that has spaces or special characters, usually Windows XP will work fine with commands with spaces, but if you have problems, always include quotes around your path:
Older Operating Systems like Windows 98 (9x) can't have path segments longer than 8 characters, so you have to truncate the segments like this:
"C:\Progra~1\Intern~1\Connec~1"
One final note. What I always do when I'm done with my batch file is manually test the commands. I open up the batch file in Notepad (or your favorite text editor) and also open a command prompt. Then I systematically type in each command one at a time, following the commands in my batch file. This allows you to immediately see where your Batch file is getting hung up. Normally when batch files run, the commands are displayed on the screen so fast that if there is an error, you can't see what it was. Typing the commands manually as a test allows you to systematically see what's going on during each step.
What should I type if I want to delay the second program in this script? @echo off Rem Banlist Cd C:\Program Files\WC3Banlist Start WC3Banlist.Exe Rem TFT Cd C:\Program Files\Warcraft III Start Frozen_Throne.Exe Exit
I am not sure if this is the best place to ask this question, but is the closest message board to my problem:
I have used some of you tips for scripting a .bat file, so thanks for the help, however I have also combined this with a menu system (not as advanced as it sounds), but I have hit a few issues. The script is below:
CODE
@ECHO OFF :START CLS ECHO --------------------------------------------- ECHO CONNECTRIX MANAGER MENU ECHO --------------------------------------------- ECHO 1 - Connectrix Manager and Melville Gate Lock ECHO 2 - Connectrix Manager and Macmerry Lock ECHO 3 - Exit ECHO --------------------------------------------- :QUERY ECHO Please Select GETKEY IF ERRORLEVEL 57 GOTO QUERY IF ERRORLEVEL 51 GOTO L3 IF ERRORLEVEL 50 GOTO L2 IF ERRORLEVEL 49 GOTO L1 GOTO QUERY
:L1 cd C:\Program Files\Connectrix Manager 9.5\bin\ start CtxMgr_Client.bat J: cd \ cd J:\Application Infrastructure Services\Storage Services\Disk\Support\Provisioning\EMC Work Plans\Zoning Melville_Gate_Zoning.xls GOTO START
:L2 cd C:\Program Files\Connectrix Manager 9.5\bin\ start CtxMgr_Client.bat J: cd \ cd J:\Application Infrastructure Services\Storage Services\Disk\Support\Provisioning\EMC Work Plans\Zoning Macmerry_Zoning.xls GOTO START
:L3 exit
I have a couple of issues:
ISSUE 1 - When I select option 1 the two applications open, however the DOS window goes on a loop with the error message: Please Select 'GETKEY' is not recognized as an internal or external command, operable program or batch file.
ISSUE 2 - If I select option 1, there have been times when it has not gone on a loop and both applications open. However if I want to select option 2 after that it does not accept any more input to choose option 2 and therefore I have to close the DOS window and re-open.
ANY IDEAS?
Cheers
Notice from rvalkass:
Please try to use the correct BBCodes where appropriate. List of BBCodes
Start Multiple Programs With One Shortcut Thanks coolcat. Neat trick and easy to do. Now when I start uTorrent, PG2 jumps to the rescue :^)
-reply by budser
Wow, this is great!
here's a question: is it possible to get the second program to start with a bit of a delay?
thanks, ya
EDIT:
ok, I am impatient and I managed to find the answer elsewhere. figured i'd leave it here too, in case anybody else is interested.
I am using Windows Vista, and this worked for me. I am also using .bat to execute my shortcuts.
Lets say I wanted to start yahoo messenger, and ten seconds later to start windows media player.
First of all, using notepad, you have to save these commands: @ping 127.0.0.1 -n 2 -w 1000 > nul @ping 127.0.0.1 -n %1% -w 1000> nul
and call the file WAIT.bat
Then you open a new document and input: @echo off start "" "C:\Program Files\Yahoo!\Messenger\YahooMessenger.ex... CALL WAIT 10 start "" "C:\Program Files\Windows Media Player\wmplayer.exe"
the important part is to write the CALL WAIT 10 (or 15, in your case) in between the two programs. When you save this file, name it whatever you want, just remember to save it as a *.bat
this works for me!
~~~~ Another option is to download the windows resource kit that allows you to do the same thing using a sleep command, supposedly it is simpler than doing all the work outlined above. http://malektips.com/xp_dos_0002.html
Reason you would need to use this: If you have Multiple Sharepoint Calendars that you need to see
side by side with your personal calendar in Outlook 2007. This tutorial is for company wide
deployment. Requirements: Outlook 2007, Sharepoint 3.0 or Sharepoint 2007, Active Directory (To
control using Group policies). Other: Will work with Outlook 2003 but will not update changes back
to Sharepoint Calendar (Only one way: Sharepoint to Outlook 2003) 1) Create the Calendars Create
as many Calendars as you need on your Sharepoint site (this could be on diferent sites or....
Just a hack I've made in the past. I think I disabled the Game Over pop-up sometime as well,
except I didn't write it down anywhere. Disable Flashing in FreeCell Windows FreeCell
flashes the window whenever your available moves is equal to one. If you find the flashing annoying
like me, this hack will banish it to the dark realms. (Wikipedia says Vista FreeCell doesn't
flash the screen anymore!) The guide: We only need one download to get this working:
Any generic hex editor (I'll use xvi32). Download is here: http://www.hands....
Here is the simple bit of code that will help you to create or restore the Show Desktop Shortcut in
Windows XP. Open Notepad or any simple text editor and type the following code, CODE
[Shell] Command=2 IconFile=explorer.exe,3 [Taskbar] Command=ToggleDesktop Save
the file as 'Show Desktop.scf' and make sure theat 'All Files' is selected in the
File Type list. Save this file in desktop and then drag it ove to the Quick Launch bar. If you
want to customize the icon and use your own Icon instead of using the Windows Default, put ....
Recently Microsoft has developed a program that makes user control easier. The program is called
Windows SteadyState 2.5 and it needs a genuine version of windows. System Requirements
• Supported Operating Systems: Windows Vista Enterprise; Windows Vista Home Premium; Windows
Vista Ultimate Windows XP Professional, Windows XP Home Edition, Windows XP Tablet PC Edition with
Windows XP Service Pack 2 (SP2) installed or Service Pack 3 (SP3) installed, Windows Vista Business,
Windows Vista Home Basic, Windows Vista Starter, or Windows Vista with Servi....
So, some of you might know about this already but, anyways... The other day I was trying to install
a game but did not have the necessary disk space, so I deleted files that I will not use, and other
files that I do not need... I compressed some files that I might use later in the future... And just
doing that got me back around two to three gigabytes of free hard disk space... But that's not
enough, the game needed 6 gigabytes of free disk space! So what did I do next? I ran CCleaner...
It took a while yes, but soon it free'd another 2 gigabytes... ARRGH&....
Ok, this tutorial is designed to teach you how to remotely shutdown a Windows computer on a Local
Area Network. I have not been able to test this on wireless and successfully do it, but it will work
on computers connected to a LAN. Well here is how to do it. 1.Open Command Prompt on the computer
you wish to shutdown from. Press Win + R and type in cmd or command. 2.Type in ipconfig on the
computer you wish to shut down. If you know the IP address of the computer you wish to shutdown go
to Step 4. 3.Get the IP address from the computer. 4.Go to the computer you wish t....
Windows XP reservers 20 percent of the Internet bandwidth for QoS ( Quality of Service). This is
unnecessary and can be disabled. By disabling this you get a boost in the Bandwith. Follow the
following steps: * Select Start > Run and enter gpedit.msc to Open the Group Ploicy Editor.
* In the left-hand column in the window, navigate to Computer Configuration > Administrative
Templates > Network > QoS Packet Scheduler * In the right column double-click on Limit
reservable bandwidth and select Enabled . * Change the Bandwidth Limit to 0 and click OK. N....
Most of people share their computers with others -family, mates, buddy or whoever- and that sharing
threatens their secrets and private file to be revealed, letting some people to know things they
shouldn't know.. My Securing Way: Operation - Camouflage Use an Icon
Editor to generate a 1x1 Transparent Icon and Save it .. > 1 Open CMD.. Start >> Run or Press
WindowsLogo+R.. Lets Say you wanna hide a Folder named " secure " and it's located in
E:\folder\ so Write E: and Press Enter then Write Cd folder and Enter then At....
The Registry has to be one of the least understood aspects of the Windows operating system family. A
wrong entry in the Registry can potentially wreak havoc on the system.To understand the Registry is
to get to the heart of controlling and modifying your Windows system. If you know what you are
doing, you can turn your machine into a lean performance machine, customize and personalize its
appearance, and get complete control over nearly every aspect of how Windows XP behaves. It is
always recommended that you take a backup of the Registry before proceeding with an edit,....
I know that Vista came out a long time ago, and that most of you already have it, but for the people
who don't, here's a tutorial on how to make your Windows XP look like Vista, with Aero Glass
transparency, the Vista Start Menu, 3D Flip, and more. NOTE: This only works on Windows XP, NOT on
Windows 2000 or Win 9x. Warning: I am not responsible for anything that happens to your computer
from doing the things explained in this tutorial. The steps should be done in order. Download
and Install StyleXP StyleXP is a program that you can use to add Themes and....
Alright, I just found out about this very recently on my quest to get a wireless adapter for my Xbox
360. You can use the wireless connection from your laptop as an internet connection for the 360.
I'm putting this up because I had a lot of trouble with the DNS portion of this and no one has
posted up the way that I found to do it, so here I go. Supplies: Laptop connected to internet Xbox
360 Ethernet Cable (comes with Xbox, can use any other though) 1. First, have your xbox turned on.
Also have your PC on, since this next part is all with the computer. This will....
If u have only Windows Vista installed just format the partition usually C: to uninstall. But if
you are dual booting with Windows XP then Backup important data Put your Windows XP CD in the
drive & boot from that drive Don't go ahead with the install but instead Start the Recovery
Console You will be asked to log in to Windows XP with Administrative privileges Enter fixboot
on the command prompt Enter fixmbr on the command prompt Format the Windows Vista partition
The steps are necessary because Windows Vista ships with a new Boot Loader I am assu....
This is my first tutorial and my first post so i hope you like it! First of all to be able to
hack windows pinball you will need the Cheat Engine available from
http://www.cheatengine.org/CheatEngine53.exe . After installing the program open it up and skip the
inbuilt tutorial unless you want to do it. First play Windows pinball for a bit to get a good score
(just use one ball) then click in this icon in the top left-hand corner of the cheat engine. Now
you should see a list of programs running at the moment, scroll down to find the file PINBALL.exe
which is Wi....
If you have been using Microsoft Windows Vista for quite some time, you would have noticed that
installing a number of programs/softwares into your computer considerably slows down the response
time of your start menu program folder, sometimes up to one second or more before the programs
listed in a particular start menu folder is displayed. Worst of all, if you are trying to launch a
program from you start menu which is within another start menu prrograms folder. Well, I have found
a way to bypass this very annoying thing in Windows Vista. I have about 98 start menu en....
Ever since I connected a program I made in Visual Basic to MySQL database, I had an idea to create
some sort of a status page... And I did that, where I updated my connection status every 60 seconds,
updated my Winamp playlist, and several other interesting things... Then, I figured I could create
an image, and display all that info, and show it on forums, as a signature... And I made a great
PHP script, that look real fancy, and does the job perfectly... So, I was adding the reference to
http://status.galahad.trap17.com/stat.php to all the forums... BUT (there's ....
If you want to allocate more resources to an important program you are running do the following: 1)
press ctrl+alt+delete 2) select the "processes" tab 3) find the program you are using and
right-click on it 4) on the drop down bar that appears scroll over "select priority" 5) select
"high" (CAUTION DO NOT SELECT "REALTIME" AS THIS MAY IMBALANCE YOUR SYSTEM) 6) A warning will
appear, click yes If you follow these easy steps you will find that whatever program you have done
this to should run faster and more efficiently. However, this is something that must be done each....
I know that there has been many at times, when for some reason or the other, people would want to
disable the ability of Windows XP to boot into safe mode. Even though that this is not a very thing
advisable thing to do, but still, people, due to some reasons best known to them would always want
to do this. The other day, a friend of mine who works in (manages is the right word) a cyber cafe
was heads over toes, trying to figure out to to disable the safe mode boot in Windows XP. His
reason..... customers are hacking into their computers and browsing free of charge by b....
I realize there is another topic in this section about the recycle bin, but it doesn't mention
how to rename the recycle bin. Like most other tasks of this nature, accomplishing this will require
modifying the windows registry. First, open the registry editing tool "regedit" by clicking on
Start, Run then typing in "regedit" before pressing OK. Screenshot:
http://img525.imageshack.us/img525/8230/01ay6.jpg In the regedit program you will see a simple
looking program with a tree structure control in the left side (displays the setting categories) and
a panel at the....
How to Group Multiple Sets of Data in Microsoft Excel 2007 Sometimes you may open several
workbooks and work with a number of the same workbooks at a time. You can open this group of files
with Microsoft Excel 2007 simultaneously. But you have to define them as part of a workspace, and
save them in a single Excel 2007 file. To do this, follow below steps: 1- Click On the View tab and
then in the Window group click Save Workspace. The Save Workspace dialog box appears. 2- In the File
name field, type your work name and then Click Save. 3- At the top-left of window, C....
Here is one of the not so known method for free-up the RAM to make the Windows run faster. When
programs run in Windows XP, they frequently use what are called DLLs (Dynamic-Link Libraries). These
contain shared programming instructions and other files like icons, graphics, sounds, etc. that
different applications use in order to run. DLLs are stored in RAM whenever the applications load
them; when you quit a program, XP is supposed to release the DLL from memory. But some DLLs can get
stuck. Here is the method to mend this up. Step 1: You can force Windows XP to re....
QUOTE phpMyAdmin lets you control you MySQL database from a web browser. Steps: 1. If you
haven't done so already, download the phpMyAdmin Database Manager - You can download the
software from the phpMyAdmin website. Be sure to download the phpMyAdmin-2.6.2-pl1.zip file. Save
the file on your Windows Desktop. ... ... ... Go to for more info. Post Copied. Member
Banned ....
Hi everyone, Ok before I start, I want to let you guys know the meanings of some of the
terminologies I will be using in here. Boot loader is a small program which the operating system
places on the selected partition (in most cases, the MBR ). it is a small program that loads the
operating system into the computer’s memory when the system is booted and also starts the
operating system. So, before you can think of configuring your PC to have multiple boot, you should
also know how to play around with 'em boot loaders too. And you should also make sure that y....
hi, today im going to give you small tutorial how to use `Prototype JavaScript Framework`
1st you have to download `Prototype JavaScript Framework`library from
http://prototype.conio.net/ prototype makes easy to using Javascript, ex : when you want to point
(get) the element from HTML usually we use : CODE
document.getElementById('elementId') with prototype we use CODE
$('elementId') , yeah...world getting small..with prototype. example
we`re going to get value from an element of CODE ....
Ok, so I found out about podcasting on iTunes, and I fell in love with it. It was probably the
coolest thing ever to happen. Now it's a big thing, and anyone can do it. This will cover just
the basics of using MP3 file, tagging them, and uploading them in a directory on a web server with
dircaster installed. If you want to get advanced I reccomend getting a book on it. This is only the
basics, because I am running a windows computer at the time, and you can only have enhanced
podcasting in mac at the time of me writing this... Let's get started. First things fir....
Today, I will show you how to make a sig rotator similar to mine (refresh a page with my post, and
you will see a different sig each time). We will use the sig rotator to display random sigs here at
trap17. Create a folder called sig.png Actually, the folder can be called anything, but since we
will be using the rotator here, it has to be called sig.png because Invision Power Board may not
allow weird extensions. You can replace png in sig.png with any valid image extensions such as gif
of jpg. Create a file called index.php If you need help renaming a file to .....
This method will stop people from disabling System Restore. 1. Go to Run (Start->Run) 2. Type
gpedit.msc and click Enter 3. On the left in the Computer Configuration go to Administrative
Templates then System then System Restore. 4. Double click on the Turn off System Restore on the
screen on the right and choose Enable. Check if it's working. Go to System Properties (Control
Panel -> System) and to tab System Restore The 'Turn off System Restore' should be now
'unclickable' ....
Windows starting to bore you like an old girlfriend? (Please, have a sense of humour /wink.gif'
border='0' style='vertical-align:middle' alt='wink.gif' /> ) No worries - here's how to get
your PC looking just like a Mac! Download these babies and put the oomph back in your PC
experience /smile.gif' border='0' style='vertical-align:middle' alt='smile.gif' /> Program #1:
iTunes URL: http://www.apple.com/itunes/ Music player. Classic clean lines in minimalist iPod
fashion. Drool (after you download it /wink.gif' border='0' style='vertical-align:middle'....
What is the Windows xp shell? The term shell reffers to the graphical user interface (gui) i.e the
desktop and the task bar, basically explorer.exe (the default windows shell). Where can I find a
replacment shell? The best place to start is with some shell information sites, I would recommend
Shell-Shocked , Try these: Litestep Xoblite (Blackbox) Geoshell I would personally
recommend Litestep. now you have a shell heres how to manually set the default shell in windows xp
Changing the default shell (all users): 1) open regedit (start menu > run, and type i....
This tutorial applies to all those people who insist upon using "End" to close their programs: End
stops the program immediately without any thought as to what's going on - it's like a high
speed train hitting a brick wall. It can cause unwanted errors and is bad programming practice in
general. END gets rids of the form, but NOT its leftovers. This leaves a bunch of memory that will
still be in use even after your program has supposedly closed. An object or variable won't be
terminated properly - it's just not a graceful exit. The only time that it'....
Looking for start, multiple, programs, shortcut, windows, xp
*RANDOM STUFF*
*SIMILAR VIDEOS*
Searching Video's for start, multiple, programs, shortcut, windows, xp
Express your Opinions, Thoughts or Contribute your information that might help someone here.
Ask your Doubts & Queries to get answers.. "Together, We enlight each other!"
Register FREE for AD-FREE
forum, Create your own topics, Ask Questions, track topics, setup
subscriptions & notifications and Get a Free Website w/ Email and FTP.