Batch file help...

codeman0013

Active Member
Ok this one might sound stupid but here goes..

I have a program that for some reason will only launch when you open task manager and click File> New Task (Run..) adn point it to the location of the file... Is it possible to create a batch file that will not only open task manager but then execute the File> New Task (Run..) part of this equation?
 
Easy.

Just create a text file (Run>notepad). Type this:

start file.exe

Of course, replace file.exe with whatever it is you're trying to run, and save it as whateveryouwant.bat

The name doesn't matter, you just have to change .txt to .bat

Alternatively, you could just make a shortcut off of the file that you need to run.
 
I have done this the problem is the only way and i mean the only way to open this app is to open task manager then on task manager click on file >new task (run..) and point it to the file i have tried just doing open and the exe that wont work i ahve tried just opening the shortcut that wont work i dont know what else to do but set it to open the task manager and then click file>new task run ect but i dont think it works very good or can even be done..
 
I have done this the problem is the only way and i mean the only way to open this app is to open task manager then on task manager click on file >new task (run..) and point it to the file i have tried just doing open and the exe that wont work i ahve tried just opening the shortcut that wont work i dont know what else to do but set it to open the task manager and then click file>new task run ect but i dont think it works very good or can even be done..

A batch file using the start command is the exact same thing as using the run command. You just need to type "start*whatever you normally type in the run box*"

Also, you don't have to open run through the task manager, you can just hit Windows Key + R.
 
As goofy as this sounds start>run does not work but this does only work when you do it from task manager something must be different
 
As goofy as this sounds start>run does not work but this does only work when you do it from task manager something must be different

That is goofy, and really makes no sense what so ever. What type of program can only be ran that exact way?

I would assume it would be possible to make a batch file fitting your exact specifications, but I wouldn't know how.
 
Its chemcad version 6.1 the old 5.6 version worked great and their developers have only figured out this one way but our users are getting tired of havign to open it this way..
 
I think I've got a solution, but it would require you to install this on all of the machines using the program:
http://www.autohotkey.com/

This is a macro program, and you can create files that you just double click and it will run the macro. You just need to make one that does the following:

Ctrl+Shift+Esc (Open Task Manager)
Alt+F (Brings down file menu)
Enter (Opens "New Task")
**Whatever the file name is**

Then you can just double click on the macro file and it should do it all for you.

EDIT: You can convert the macro files to .exe, so you WOULDN'T have to install the program on every machine.

2ND EDIT: If you want to give me whatever it is you have to type in the Run field, I can make a .exe that will do it for you.
 
Last edited:
Back
Top