Page 1 of 1

Big batch project > problems!

Posted: 22 Oct 2009 07:00
by burnleylad_84
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.

Posted: 22 Oct 2009 09:50
by avery_larry
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?