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 file runs twice


2 replies to this topic

Xitch13

Xitch13
  • Members
  • 134 posts

Posted 23 July 2002 - 15:00

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)

hambone

hambone
  • Members
  • 206 posts

Posted 26 July 2002 - 15:50

i'm thinking that a quick solution to this would be to limit the BATch filename to an 8.3 format.  say, rather then use the AutoBuild.BAT name use the AutoBld.BAT ?

Xitch13

Xitch13
  • Members
  • 134 posts

Posted 26 July 2002 - 16:01

Not sure that would work.  I created a small test installer that only installed 2 BATch files and a shortcut in the Start-Up folder.  On reboot the shortcut would run a BATch file named Test.BAT which would then call the second BATch file.  On a Win98 box, Test.BAT would run twice.

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