Help - Search - Members - Calendar
Full Version: Help Making A Simple Batch File...
BleepingComputer.com > Software > Programming
   
Temo
I was trying to make a batch file work but it just didn't work.

is this the commond to open a program?
START /M "C:\WINDOWS\NOTEPAD.EXE"

anyways... I also try to use @Echo off and it didn't work... it still poped the Dos window...

All I need is something that will turn a program on... I need it because this program has to start ever time I turn on my computer... and maybe I need help in this part also...

Thanks in advance...
Rimmer
What operating system are you running?
If you have XP you open a command window with Start>run and type cmd OK.
You can run your batch files from there.

You can write your batch files using Notepad - when you have finished save the file with a .BAT extention instead of .TXT and that's your batch file done. Open the command window, change directory (CD) to where you saved the batch file and just type its name. It will then execute.

"@Echo off" means don't output any text to the screen unless specifically told to.

QUOTE
it still poped the Dos window...


- I don't understand what your saying here.

QUOTE
All I need is something that will turn a program on..

If you are running Windows and the program is installed in windows (i.e. not a DOS program) then all you have to do is copy the program icon from the Start Menu or from the Desktop and paste it into the Startup folder on the Start Menu. The easiest way to do this which will work in all versions of Windows is to right-click the Start button and select 'Explore'. That opens the Start Menu for your user. Navigate to the Startup folder (should be directly under Programs) and paste your icon in there. When Windows starts that program will run. You can set parameters to start the program minimised or with particular values set and a host of other options - refer to windows help on using Startup.

hth smile.gif
Temo
thanks
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2008 Invision Power Services, Inc.