Big batch project > problems!

Discussion forum for all Windows batch related topics.

Moderator: DosItHelp

Post Reply
Message
Author
burnleylad_84
Posts: 4
Joined: 22 Oct 2009 06:51

Big batch project > problems!

#1 Post by burnleylad_84 » 22 Oct 2009 07:00

Hi,

I need to create a batch file for work that will open up certain applications to help automate the task of getting ready each morning.

I know i can use start /d command for this but its not as straight forward as that.

First problem ive run into is starting an application that is installed on the main hard disk but is also partially networked and the application target goes like this;

Code: Select all

"C:\Program Files\jade\bishop\Hmlprfc\c_bin\jade.exe" ini=\\hml.co.uk\dfs2\jade\bishop\ini\hmlprfc_client.ini%20app=HML_MainForm%20schema=HML


i use start /d for this and it just won't run, when i try and use the direct path;

Code: Select all

start /d C:\Program Files\jade\bishop\Hmlprfc\c_bin jade.exe
it comes up with the error that application has to be started in the command line so again it won't open.

Once this little issue is fixed im ok with the rest i guess, i will be adding a menu and wait commands between each application loading so it prioritises the order and loading times. I will also be inputting the login info if this is even possible through a vbscript that i will compile with the batch script.

Any help on the jade issue is appreciated.

avery_larry
Expert
Posts: 391
Joined: 19 Mar 2009 08:47
Location: Iowa

#2 Post by avery_larry » 22 Oct 2009 09:50

I think you just need to use double quotes. The trick is that the FIRST set of double quotes will be interpreted as the TITLE of the window, so you have to add a "title" like this:


Code: Select all

start "title" "C:\Program Files\jade\bishop\Hmlprfc\c_bin\jade.exe" ini=\\hml.co.uk\dfs2\jade\bishop\ini\hmlprfc_client.ini%20app=HML_MainForm%20schema=HML


Not completely sure why you even need to use the "start" command, though:

Code: Select all

cd /d "c:\Program Files\jade\bishop\Hmlprfc\c_bin"
jade.exe ini=\\hml.co.uk\dfs2\jade\bishop\ini\hmlprfc_client.ini%20app=HML_MainForm%20schema=HML


In addition, those %20 should perhaps be spaces?

Post Reply