Author Topic: MAKEDIR()  (Read 2346 times)

Offline 9940

  • Mr. Drawsprite
  • **
  • Posts: 53
    • View Profile
MAKEDIR()
« on: 2009-Jul-15 »
There isn't a command to make a directory  :S

Offline Kitty Hello

  • code monkey
  • Administrator
  • Prof. Inline
  • *******
  • Posts: 10682
  • here on my island the sea says 'hello'
    • View Profile
    • http://www.glbasic.com
Re: MAKEDIR()
« Reply #1 on: 2009-Jul-16 »
And none to move a file. I'll implement it in V7, sorry.

Offline Hemlos

  • To boldy go where no pixel has gone before!
  • Global Moderator
  • Prof. Inline
  • *******
  • Posts: 1618
  • Particle Hawk
    • View Profile
Re: MAKEDIR()
« Reply #2 on: 2009-Jul-16 »
And none to move a file. I'll implement it in V7, sorry.

function copy: a$, b$
copyfile a$, b$
killfile a$
endfunction

Volume_of_Earth(km^3) = 4/3*3.14*POW(6371.392896,3)

Offline Kitty Hello

  • code monkey
  • Administrator
  • Prof. Inline
  • *******
  • Posts: 10682
  • here on my island the sea says 'hello'
    • View Profile
    • http://www.glbasic.com
Re: MAKEDIR()
« Reply #3 on: 2009-Jul-16 »
KILLFILE b$
COPYFILE a$, b$
IF DOESFILEEXIST(b$)
   KIlLFILE a$
ENDIF

;)

Offline 9940

  • Mr. Drawsprite
  • **
  • Posts: 53
    • View Profile
Re: MAKEDIR()
« Reply #4 on: 2009-Jul-16 »
Also RENAMEFILE/RENAMEDIR are useful for bigger files
« Last Edit: 2009-Jul-20 by 9940 »