hallo
Sorry for the delay
never got it to work, now running the easy way
code:
;
; Script begins
cls
COLOR w+/b
; Ta bort startbara filer
SHELL "a:\COMMAND.COM /C del a:\net\net.exe"
SHELL "a:\COMMAND.COM /C del a:\autoexec.bat >nul"
flushkb
? "My Macaddress = @address"
sleep 5
IF Open( 3 , "T:\movex.txt" ) = 0
$x = ReadLine( 3 )
WHILE @ERROR = 0
IF $x = "@address"
:movex
? "MacAddress Match, starting Movex"
run "t:\runapp.bat movex"
exit
quit
ENDIF
$x = ReadLine( 3 )
LOOP
ENDIF
:Internet
IF Open( 3 , "T:\ie.txt" ) = 0
$x = ReadLine( 3 )
WHILE @ERROR = 0
IF $x = "@address"
? "Match, starting Internet Explorer"
run "t:\runapp.bat Internet"
exit
quit
ENDIF
$x = ReadLine( 3 )
LOOP
ENDIF
? "No Match, starting Desktop"
run "t:\runapp.bat Desktop"
exit
quit
:END
exit
quit
Thanks for the help, im going with diffrent files.
Cant get the *.ini files to work
Regards
\erik