Re: creating directory in dos, EuStudio

new topic     » goto parent     » topic index » view thread      » older message » newer message

I know how to make a folder in Windows using the Kernel:

include dll.e
include machine.e
constant kernel=open_dll("Kernel32.dll"),
-- CreateDirectoryA(lpszFolderName, securityAttributes)
-- securityAttributes is only usefull when using WinNT
         createDirectory=define_c_func(kernel,"CreateDirectoryA",{C_POINTER,
                                       C_LONG}, C_INT)
atom ptr
ptr=allocate_string("My test folder")
if c_func(createDirectory, {ptr, 0}) then
    -- successful
end if
free(ptr)

But to make a folder in DOS, download DOS.E.

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu