1.

Solve : Testing memory...?

Answer»

Hi, i am new here and i am wonderin if someone can point me in the right direction. i have to make a batch file that does the following:

Restart the computer.
Run a program.
Output results to a text file.
Then do the same thing for three more programs.

Thank you in advance for any help...Generally we try to avoid doing homework for people, but I am going to move this to the DOS section AND give yo a link to batch files. There are also many good books available, probably your textbook has some as well.

http://www.google.com/search?hl=en&q=batch+file+helpIf he is a newbe the "entrance" can be a bit difficult and timeconsuming to find.

A little starthelp:
Check the "shutdown" and the "call" command.
This Website might help: http://www.ss64.com/nt/

HOPE it helps
ulii know how to use the call and start function...but how do one restart or shutdown the computer and run the program? i know the basic shutdown comment... after one restart, does the batch file CONTINUE? Thanks for any help...use shutdown -r then autoexec to run the program!i know how to shut down and everything but DONT know how to shut down and run the program automatically once it is restarted without entering anything into autoexec. the batch file will continue to still run after the restart. can someone show me an example. thanks...When you run the bat file, it wont carry on from where it left off after the restart. Try write a bat file that inputs the values into autoexec.cfg file then deletes them if you dont want anything there.Quote

When you run the bat file, it wont carry on from where it left off after the restart. Try write a bat file that inputs the values into autoexec.cfg file then deletes them if you dont want anything there.

Huh ? ? ?


lol ok never mind i explained all wrong.You can change the registry KEYS to autologon to the pc.
(To find out the keys make a reg dump, change it with tweak ui, make a reg dump,
compare it with the fc command...)

To autostart the batch file again after the REBOOT, do it with the registry.

Change the registry back at the end of the batchfile.

The reg commmand is in the [RK].

Will be tricky and timeconsuming but...

hope it helps
uli

(I don't know the reg keys, sorry.)


Discussion

No Comment Found