I'm trying to call a unix function from a realbasic application - the app is not really an Application, but just a screen to display an acceptable use policy with 2 buttons - agree and disagree.
button 1 - " i agree" I have an action on mouse-down for the application to quit by simply using the code "quit"
button 2 - "i disagree" This is the button i am having trouble with. Here is the code:
dim s as new Shell
s.Execute "shutdown -r"
Under RealBasic 4.0.1 i cannot use "new Shell" just "Shell" but upon clicking the button after building the application I get "An exception of class NilObjectException was not handled. The application must shut down".
RealBasic 2009 Release 5.1 allows me to use the "new Shell" syntax but when testing, nothing happens when the button is clicked.