Computing.Net > Forums > Windows NT > batch file to execute a windows shortcut

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.

batch file to execute a windows shortcut

Reply to Message Icon

Name: Will Ryan
Date: November 18, 2001 at 13:45:19 Pacific
Comment:

I want to create a batch file which executes a windows shortcut. This might sound a bit strange (why dont I just execute the file directly from the batch I hear you say???) The reason is I'm attemting to run the MiniMax webserver which has to be run using a shortcut to tell the server where the webroot directory is. The strange thing, is when I try to execute the shortcut using a batch, it starts the webserver but it doesnt seem to know where the webroot dir is. However, when the shortcut is clicked to execute, this is not a problem. I'm using WinNT 4. Please help.... I'm tearing my hear out.



Sponsored Link
Ads by Google

Response Number 1
Name: Bob
Date: November 20, 2001 at 07:54:32 Pacific
Reply:

Check the working directory of the batch file. You may find changing this will fix the problem. Not sure if it will or not, but worth messing with (Properties of the batch file itself.)


0

Response Number 2
Name: Justin
Date: November 21, 2001 at 21:56:25 Pacific
Reply:

what about taking the command line from the shortcut with the switches and options, etc. and just paste em into your batch file. Other than using autoexec.bat I couldn't figure out


0

Sponsored Link
Ads by Google
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 NT Forum Home


Sponsored links

Ads by Google


Results for: batch file to execute a windows shortcut

how to execute one file on network? www.computing.net/answers/windows-nt/how-to-execute-one-file-on-network/8051.html

Batch file to execute ASP script from WTS (on IIS) www.computing.net/answers/windows-nt/batch-file-to-execute-asp-script-from-wts-on-iis/10185.html

Batch file to run on log off www.computing.net/answers/windows-nt/batch-file-to-run-on-log-off/22252.html