Device update agent not able to restart computer

  • Thread starter Thread starter lawsonchan
  • Start date Start date
L

lawsonchan

Here is part of my device update script, I need to restart my computer
and then followed by the delete command.

// Reboot
REBOOT,,DAREBOOTOPT_REBOOT

// Delete old file
DELETEFILE,,,D:\CABLETEST\A_old.exe.exe

However, the reboot command actually shutdown my computer without
restart. In addition, the delete command never execute after the
computer restart. Anyone has similar problem like this?
 
The DUP file is going to disappear so it doesn't get called again. When you
reboot the file is gone and no further processing can take place. You might
want to setup a RUN ONCE registry key that calls an application to delete
the file, when the system reboots the file will get deleted.

I am not sure why the reboot is not working, but for a guess, it might have
to do with a command following the reboot call.

--
Regards,

Sean Liming
www.sjjmicro.com / www.seanliming.com
Book Author - XP Embedded Advanced, XP Embedded Supplemental Toolkit
 
Back
Top