Nice Easy One for You!
Right,
To save on system resources I have my ColdFusion Server and RDS service on my desktop as a shortcut rather than in the startup folder. When I need them I just double click and bobs your uncle.
What I would like to do is have a single shortcut to launch these and other applications with one click. Can this be done?
Busy posted this at 21:46 — 25th October 2002.
He has: 6,151 posts
Joined: May 2001
how about having a .bat file with commands in it so when double clicked the contents are run/open
openmind posted this at 21:48 — 25th October 2002.
He has: 945 posts
Joined: Aug 2001
That'll do it!!! I sorta remember what a bat file is and how it works but could you remind me of how it works?
Thanks Busy
Busy posted this at 22:09 — 25th October 2002.
He has: 6,151 posts
Joined: May 2001
I just suggested it because thats how my Apache/MySQL is set up
the contents of the .bat file is:
start c:\php\mysql\mysqld-opt.exe
cd c:\php\apache
apache.exe -k start
openmind posted this at 22:24 — 25th October 2002.
He has: 945 posts
Joined: Aug 2001
Ok, I figured out how to strat the apps that I want, is there anyway to close the command window once it has finished running or am I asking for the earth now
openmind posted this at 22:28 — 25th October 2002.
He has: 945 posts
Joined: Aug 2001
Ignore that last post, I figured it. Thanks Busy
taff posted this at 12:24 — 26th October 2002.
They have: 956 posts
Joined: Jun 2001
how?
openmind posted this at 17:39 — 26th October 2002.
He has: 945 posts
Joined: Aug 2001
I just right clicked the .bat file and selected properties. Clicked the "Program" Tab and checked "Close on Exit".
I have hit another snag though. When it tries run the following line
C:\Program Files\Macromedia\Dreamweaver UltraDev 4\UltraDev.exe
it chokes and say it can't find the file with the following error:
Cannot find file 'C:\Program' (or one of its components). Check to ensure the path and filename are correct and that all required libaries are avaliable
Now I know the file and path are OK so I'm assuming its falling over on the space between Program and Files. How do I get round this?
Busy posted this at 21:11 — 26th October 2002.
He has: 6,151 posts
Joined: May 2001
tried %20 in the .bat file as the space?
C:\Program%20Files\Macromedia\Dreamweaver%20UltraDev%204\UltraDev
Abhishek Reddy posted this at 22:58 — 26th October 2002.
He has: 3,348 posts
Joined: Jul 2001
This is DOS, right?
The paths then become something like this:
C:\PROGRA~1\MACROM~1\DREAMW~1\ULTRADEV.EXE
By using
C:\Program Files\Macromedia\Dreamweaver UltraDev 4\UltraDev.exe
the computer reads up to where the space is, then considers the first part as the whole string and the rest as other command parameters.
Busy, isn't %20 only for URLs?
Busy posted this at 06:52 — 27th October 2002.
He has: 6,151 posts
Joined: May 2001
true, I forgot about DOS only being so many digits for filenames.
I know the %20 works in url and file/image names, not sure if it works in DOS or not.
openmind posted this at 11:43 — 27th October 2002.
He has: 945 posts
Joined: Aug 2001
That nailed it! Thankyou Abhishek and Busy. My knowledge of DOS is limited to changing directories and deleting stuff so I hadn't thought of that!
Thanks again!
Abhishek Reddy posted this at 11:47 — 27th October 2002.
He has: 3,348 posts
Joined: Jul 2001
Glad to be of assistance, Phil.
Want to join the discussion? Create an account or log in if you already have one. Joining is fast, free and painless! We’ll even whisk you back here when you’ve finished.