PDA

View Full Version : 2 "easy" questions


Jack
December 6th 03, 10:35 AM
I have Windows XP on my system. I have two questions:

1) I have a simple DOS program (written in C) that I would
like to run each time the system boots. It requires no
user intervention and only runs for a second or two. How
can I do this?

2) Because I use my notbook system a lot and it links to
files on my desktop, I would like to leave the desktop on
all the tiime. I am going to install a UPS on the desktop.
My question is: can I have the desktop reboot itself once
a day, probably around 3:00 am? We had our UNIX system at
work do this, but I don't know if it can be done in
Windows.

Any help appreciated.
Thanks,
Jack

Dan
December 6th 03, 10:36 AM
As to question 1:

If you want the program to run prior to loading windows follow these steps:

Start>Run type the word sysedit and click OK
In the Autoexec.bat put the path to the program that you want to run (for
example c:\runme.exe (you may need long file names in your line-- if you
need short file names remember that there can only be 8 letters before the
dot: therefore, "program files" becomes progra~1))
File>Save
File>Exit

If you want the program to run after windows loads follow these steps:

Find the icon for the program
Right click>Send shortcut to desktop
On the desktop right click>cut
Start>explore all users
Double click Programs
Right click>Start up>Paste

As to question 2:

Follow these steps:

Start>Run
Type Notepad
In Notepad paste this set of lines:

@echo off
tsshutdn /reboot

File>Save As ... "C:\Reboot.bat"
Start>Control Panel>Scheduled Tasks
Double click "Add Scheduled Task">Browse>C:\Reboot.bat
Set the time of day that you want the program to start
Exit Scheduled Tasks
Ensure that you do not need a log in screen when you start the computer
(that is another matter all together)

"Jack" > wrote in message
...
> I have Windows XP on my system. I have two questions:
>
> 1) I have a simple DOS program (written in C) that I would
> like to run each time the system boots. It requires no
> user intervention and only runs for a second or two. How
> can I do this?
>
> 2) Because I use my notbook system a lot and it links to
> files on my desktop, I would like to leave the desktop on
> all the tiime. I am going to install a UPS on the desktop.
> My question is: can I have the desktop reboot itself once
> a day, probably around 3:00 am? We had our UNIX system at
> work do this, but I don't know if it can be done in
> Windows.
>
> Any help appreciated.
> Thanks,
> Jack

Dan
December 6th 03, 10:36 AM
Question 1, Response 2:

Start>explore all users

Should have read:

Right click Start>explore all users

"Dan" > wrote in message
. com...
> As to question 1:
>
> If you want the program to run prior to loading windows follow these
steps:
>
> Start>Run type the word sysedit and click OK
> In the Autoexec.bat put the path to the program that you want to run (for
> example c:\runme.exe (you may need long file names in your line-- if you
> need short file names remember that there can only be 8 letters before the
> dot: therefore, "program files" becomes progra~1))
> File>Save
> File>Exit
>
> If you want the program to run after windows loads follow these steps:
>
> Find the icon for the program
> Right click>Send shortcut to desktop
> On the desktop right click>cut
> Start>explore all users
> Double click Programs
> Right click>Start up>Paste
>
> As to question 2:
>
> Follow these steps:
>
> Start>Run
> Type Notepad
> In Notepad paste this set of lines:
>
> @echo off
> tsshutdn /reboot
>
> File>Save As ... "C:\Reboot.bat"
> Start>Control Panel>Scheduled Tasks
> Double click "Add Scheduled Task">Browse>C:\Reboot.bat
> Set the time of day that you want the program to start
> Exit Scheduled Tasks
> Ensure that you do not need a log in screen when you start the computer
> (that is another matter all together)
>
> "Jack" > wrote in message
> ...
> > I have Windows XP on my system. I have two questions:
> >
> > 1) I have a simple DOS program (written in C) that I would
> > like to run each time the system boots. It requires no
> > user intervention and only runs for a second or two. How
> > can I do this?
> >
> > 2) Because I use my notbook system a lot and it links to
> > files on my desktop, I would like to leave the desktop on
> > all the tiime. I am going to install a UPS on the desktop.
> > My question is: can I have the desktop reboot itself once
> > a day, probably around 3:00 am? We had our UNIX system at
> > work do this, but I don't know if it can be done in
> > Windows.
> >
> > Any help appreciated.
> > Thanks,
> > Jack
>
>

Thomas Wendell
December 6th 03, 10:36 AM
Create an new icon on the desktop with this command line:

C:\WINDOWS\RUNDLL32.EXE shell32.dll,SHExitWindowsEx 2

Then schedule this..



--
Most of my answers are learned on ms.public.xxx.xxx
Helsinki, Finland (remove spam_)




"Jack" > kirjoitti viestissä
...
> I have Windows XP on my system. I have two questions:
>
> 1) I have a simple DOS program (written in C) that I would
> like to run each time the system boots. It requires no
> user intervention and only runs for a second or two. How
> can I do this?
>
> 2) Because I use my notbook system a lot and it links to
> files on my desktop, I would like to leave the desktop on
> all the tiime. I am going to install a UPS on the desktop.
> My question is: can I have the desktop reboot itself once
> a day, probably around 3:00 am? We had our UNIX system at
> work do this, but I don't know if it can be done in
> Windows.
>
> Any help appreciated.
> Thanks,
> Jack

Google