Jump to content


This is a ready-only archive of the InstallSite Forum. You cannot post any new content here. / Dies ist ein Archiv des InstallSite Forums. Hier können keine neuen Beiträge veröffentlicht werden.
Photo

Batch files runs twice on reboot


1 reply to this topic

Xitch13

Xitch13
  • Members
  • 134 posts

Posted 23 July 2002 - 15:17

During the course of installation the  script opens a file name 'Autobuild.bat' and adds lines.  These lines are the path to a second batch file and the path to delete the shortcut to autobuild.  On reboot there is a shortcut in the common list to run "<TARGETDIR>/Autobuild.bat" (the quotes are included in the shortcut but have also tried it without them).  This shortcut is called, unfortunately it runs two copies of the autobuild.  The first is Autobuild.bat and the second Autobu~1.bat.  This only happens on Win98 machines!  Is there a way to run this only once?

Thanks
There is great chaos under heaven, and the situation is excellent. (Mao Tse Tung)

Xitch13

Xitch13
  • Members
  • 134 posts

Posted 23 July 2002 - 16:19

This is not an answer, just an update.

I created a small installer to just install 2 batch files and a shortcut.  The shortcut runs one batch file which calls the second batch.

On reboot the first batch file is run twice and both DOS windows stick around. :angry:
There is great chaos under heaven, and the situation is excellent. (Mao Tse Tung)