Gernot,
Can you help with a bit of code, I am trying to get the time into one of my programs, the code below works first time but when you run the code again it has not updated, Could it be that the file once accessed by Glbasic it will not close the file or "let go of the file for other programs", and when the dos shell trys to access it again it can't get access, If I am correct, are there any ways around it?.
Thanks, Maxheadroom.
Code:
Loop: // start
Shellcmd (“cmd /c time /t > tim.txt†,true ,false, rv) // shell out and put time in tim.txt
Getfile “tim.txtâ€,0,time$ // open file and get the time
Print time$,100,100 // print time out on screen
showscreen
Goto loop // loop for ever