Continue to Site

Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

  • Congratulations SDETERS on being selected by the Eng-Tips community for having the most helpful posts in the forums last week. Way to Go!

problem with matlab

Status
Not open for further replies.
May 14, 2007
2
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

i forgot to tell you that the problem is that the program just runs the "shutdown/s" command, even when "ret" entrance don't change
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor