if fileexists "my flash disk\AutoRun.exe" # Abfrage ob die Datei AutoRun.exe existiert. 1 I/O
if fileexists "my flash disk\device.xmlt" # Abfrage ob die Datei device.xmlt existiert, wenn ja (was fast immer der Fall ist), werden die folgende Befehle ausgeführt. 1 I/O
SetFileAttribs("my flash disk\device.sig", FALSE ) # Schreibschutz wird für der Datei device.sig rausgenommen. 1 I/O
Delete "my flash disk\device.sig" # Datei device.sig wird gelöscht. 1 I/O
copy "my flash disk\0\device.sig", "my flash disk\device.sig",1 # Datei device.sig wird vom Ordner 0 kopiert. 1 I/O
SetFileAttribs("my flash disk\device.sig", TRUE ) # Schreibschutz wird für die Datei device.sig gesetzt. 1 I/O
SetFileAttribs("my flash disk\device.xml", FALSE ) # Schreibschutz wird für die Datei device.xml rausgenommen. 1 I/O
Delete "my flash disk\device.xml" # Datei device.xml wird gelöscht. 1 I/O
copy "my flash disk\0\device.xml", "my flash disk\device.xml",1 # Datei device.xml wird kopiert. 1 I/O
SetFileAttribs("my flash disk\device.xml", TRUE ) # Schreibschutz wird für die Datei device.xml gesetzt. 1 I/O
SetFileAttribs("my flash disk\device.xmlt", FALSE ) # Schreibschutz wird für die Datei device.xmlt rausgenommen. 1 I/O
Delete "my flash disk\device.xmlt" # Datei device.xmlt wird gelöscht. 1 I/O
copy "my flash disk\0\device.xmlt", "my flash disk\device.xmlt",1 # Datei device.xmlt wird kopiert. 1 I/O
SetFileAttribs("my flash disk\device.xmlt", TRUE ) # Schreibschutz wird für die Datei device.xmlt gesetzt. 1 I/O
else # Diese Befehle werden nur ausgeführt wenn die Datei device.xmlt nicht existiert (also fast nie)
if fileexists "my flash disk\0\device.sig" # Abfrage ob die Datei device.sig im Ordner 0 existiert, wenn ja (was fast immer der Fall ist), werden die folgende Befehle ausgeführt. 1 I/O
SetFileAttribs("my flash disk\0\device.sig", FALSE ) # Schreibschutz wird für die Datei device.sig im Ordner 0 rausgenommen. 1 I/O
Delete "my flash disk\0\device.sig" # Datei device.sig im Ordner 0 wird gelöscht. 1 I/O
endif
copy "my flash disk\device.sig", "my flash disk\0\device.sig",1 # Datei device.sig wird zum Ordner 0 kopiert. 1 I/O
SetFileAttribs("my flash disk\0\device.sig", TRUE ) # Schreibschutz wird für die Datei device.sig im Ordner 0 gesetzt. 1 I/O
if fileexists "my flash disk\0\device.xml" # Abfrage ob die Datei device.xml im Ordner 0 existiert, wenn ja (was fast immer der Fall ist), werden die folgende Befehle ausgeführt. 1 I/O
SetFileAttribs("my flash disk\0\device.xml", FALSE ) # Schreibschutz wird für die Datei device.xml im Ordner 0 rausgenommen. 1 I/O
Delete "my flash disk\0\device.xml" # Datei device.xml im Ordner 0 wird gelöscht. 1 I/O
endif
copy "my flash disk\device.xml", "my flash disk\0\device.xml",1 # Datei device.xml wird zum Ordner 0 kopiert. 1 I/O
SetFileAttribs("my flash disk\0\device.xml", TRUE ) # Schreibschutz wird für die Datei device.xml im Ordner 0 gesetzt. 1 I/O
if fileexists "my flash disk\0\device.xmlt" # Abfrage ob die Datei device.xmlt im Ordner 0 existiert, wenn ja (was fast immer der Fall ist), werden die folgende Befehle ausgeführt. 1 I/O
SetFileAttribs("my flash disk\device.xmlt", FALSE ) # Schreibschutz wird für die Datei device.xmlt im Ordner 0 rausgenommen. 1 I/O
Delete "my flash disk\0\device.xmlt" # Datei device.xmlt im Ordner 0 wird gelöscht. 1 I/O
endif
copy "my flash disk\device.xml", "my flash disk\0\device.xmlt",1 # Datei device.xml wird zum Ordner 0 unter den Namen device.xmlt kopiert. 1 I/O
SetFileAttribs("my flash disk\device.xmlt", TRUE ) # Schreibschutz wird für die Datei device.xmlt gesetzt. 1 I/O
copy "my flash disk\0\device.xmlt", "my flash disk\device.xmlt",1 # Datei device.xmlt wird vom Ordner 0 kopiert. 1 I/O
SetFileAttribs("my flash disk\device.xmlt", TRUE ) # Schreibschutz wird für die Datei device.xmlt gesetzt. 1 I/O
endif
RunWait("\my flash disk\AutoRun2.exe") #
Becker Map Pilot wird gestartet
endIf