Jump to content

Windows 7 batch file


dsobbe

Recommended Posts

For many years I've been using a batch file to start Black Shark 1.0.1, Voice Activated Commands and TrackIR5 under Windows Vista.

I recently installed Black Shark 1.0.1, Voice Activated Commands and TrackIR5 under Windows 7. The batch file starts both VAC and TrackIR, but displays "Cannot find Console" in the command prompt and does not load Black Shark. I've tried deleting "--Console" but Black Shark still does not load and displays "directory is invalid" in the command prompt.

 

@echo off

REM Start BS, VAC and TrackIR. Then, close BS and VAC.

start "" "C:\Program Files (x86)\NaturalPoint\TrackIR5\TrackIR5"

start "" /d "C:\Program Files (x86)\Eagle Dynamics\Ka-50\bin\stable\launcher.exe" --Console

start "" "C:\Program Files (x86)\VAC System\VACSystem.exe" MyShark.xml,True

echo To close VAC

pause

taskkill /im VACSystem.exe

taskkill /im TrackIR.exe

 

 

I'm not up to speed on Window 7 batch files or scripts. Can anyone tell me how to modify this batch file, or write a new file, to start Black Shark?

Thanks


Edited by dsobbe
updated
Link to comment
Share on other sites

Check the path - doesn't look right?

 

If right, i think you should remove the /D in the start command - that switch expects a path - not a full filename.

 

or should be

 

start "" /d "C:\Program Files (x86)\Eagle Dynamics\Ka-50\bin\stable" launcher.exe --Console

 

Link to comment
Share on other sites

Check the path - doesn't look right?

 

If right, i think you should remove the /D in the start command - that switch expects a path - not a full filename.

 

or should be

 

start "" /d "C:\Program Files (x86)\Eagle Dynamics\Ka-50\bin\stable" launcher.exe --Console

 

 

You're right. After a lot of reading and editing I found that line should read:

 

start "" /d "C:\Program Files (x86)\Eagle Dynamics\Ka-50" bin\stable\launcher.exe --Console

 

A matter of the quote mark (") being in the wrong place. My batch file is located in \KA50\. That is why the quote mark is there.

There is also a discussion of this kind of problem here:

 

http://simhq.com/forum/ubbthreads.php/topics/2642228/help_needed_launcher_exe_has_s.html

 

At any rate, My batch file now starts and then closes all three programs cleanly and correctly. Thanks for your input. :thumbup:

dsobbe


Edited by dsobbe
typo
Link to comment
Share on other sites

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...