Computing.Net > Forums > Windows XP > Hyperlink to .Bat file w/ parameter

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

Hyperlink to .Bat file w/ parameter

Reply to Message Icon

Name: d4ndouk
Date: October 14, 2005 at 04:23:00 Pacific
OS: xp pro sp2
CPU/Ram: 2600xp/1024
Comment:

Hi, I wondered if it is possible to create a hyperlink to a batch file WITH PARAMETERS. For example, i have a batch file that runs netmeeting, and within there i have different options depening on the parameter entered. this works fine from the command line ie runnetmeeting.bat homepc (which starts netmeeting connection to my "homepc". But if i try to do this with a hyperlink it doesnt work. Anyone have any ideas on this?



Sponsored Link
Ads by Google

Response Number 1
Name: Justin Savidge
Date: October 14, 2005 at 15:59:32 Pacific
Reply:

Hyperlink? I think you mean shortcut?

Create a shortcut on the computer you want to run the .BAT file from. Explained below.

Example:
C:\Somefolder\Netmeeting.bat
- or on a network -
\\Computer\C$\Somefolder\Netmeeting.bat
Note: The "C$" always points to a drive on the computer you are going to browse on the network, whether it is shared or not.

Right click on your desktop and shoot to New > Shortcut, and enter the location and name of the shortcut of the .BAT file in the dialog. Next after you have created the shortcut, right click on it then select properties.
In the TARGET edit box, enter parameters there.

For example:
C:\Somefolder\Netmeeting.bat -parameter
- or on a network -
\\Computer\C$\Somefolder\Netmeeting.bat -parameter

And your done!

P.S. To do this multiple times quickly, just copy the shortcut, paste it back to the desktop and by using the Properties dialog, modify it's name, pertaining to what you want the parameter to do and the parameter itself.

Justin


0
Reply to Message Icon

Related Posts

See More







Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Windows XP Forum Home


Sponsored links

Ads by Google


Results for: Hyperlink to .Bat file w/ parameter

Copy files w/o copying folder www.computing.net/answers/windows-xp/copy-files-wo-copying-folder/148294.html

bat file not open on XP www.computing.net/answers/windows-xp/bat-file-not-open-on-xp/174194.html

.bat files www.computing.net/answers/windows-xp/bat-files/180708.html