Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

problem with matlab

Status
Not open for further replies.
May 14, 2007
2
0
0
hi

i just wanted to ask about a program i'm trying to make with matlab (i'm just learning to do this)because it do not works, so this is the program:

ret=ml_GetPrivateProfileString('KramerRecord','ChatColorRecord', 'Setup.ini')

while ret==877777
ret=ml_GetPrivateProfileString('KramerRecord','ChatColorRecord', 'Setup.ini')

end

status = dos('shutdown/s');

ok, the first function at the top of the code just checks an entrance from a .ini file (the .ini file is from an external program)and assigns ret=8777777 (it's the value of the entrance), so what i want to do is that the program turns off my computer when that entrance changes, so i use the "while" to keep the program running and checking the file until the entrance changes.

thanks a lot for your help
and sorry for my bad english
 
Replies continue below

Recommended for you

Status
Not open for further replies.
Back
Top