RE: Creating directories and restarting a computer
Humberto wrote:
> To create a directory:
> system("mkdir " & dir_name,2)
If you are doing a Windows program, this will cause a DOS console to pop
up. If you don't want that, there is a library in the Euphoria archives
that uses the Windows API to create directories:
http://www.rapideuphoria.com/win32fil.zip
> To restart in Linux:
> system("halt",2)
> --User must have permission to "halt"
>
> I'm not sure how to do it in windows... Since I always
> restart using the GUI.
To restart windows, use ExitWindowsEx in User32.dll. I don't know if
there is an existing library that has this function wrapped. For more
info see:
>
>
> --- tuncaydin6 at tuncaydin6.screaming.net wrote:
> > Hi!!
> >
> > I have two questions. How can I restart a computer
> > using Euphoria. I have a program I wrote and I need
> > to restart a computer before the settings activate.
> > Is there a command or system routine.
> >
> > Secondly how do you create new directories.
> >
> > Thanks
> >
> > Martin
>
>
>
|
Not Categorized, Please Help
|
|