February 27, 2021, 04:21:27 AM

Author Topic: [bb] Create directory with the name of curent date by Wings [ 1+ years ago ]  (Read 554 times)

Offline BlitzBot

  • Jr. Member
  • **
  • Posts: 1
Title : Create directory  with the name of curent  date
Author : Wings
Posted : 1+ years ago

Description : Creates a directory in curent dir with the name of curent date

Code :
Code: BlitzBasic
  1. ;Creates a directory in curent dir with the name of curent date.
  2. a$=CurrentDate$()
  3. d1$=Mid$(a$,1,2)
  4. d2$=Mid$(a$,4,3)
  5. d3$=Mid$(a$,8,4)
  6.  
  7. dir$=d3$+"-"+d2$+"-"+d1$
  8. ExecFile("cmd /C "+Chr$(32)+"MKDIR "+dir$+Chr$(32))


Comments :


Yan(Posted 1+ years ago)

 You're gonna kick yourself...
Code: [Select]
CreateDir(Replace(CurrentDate$(), " ", "-"))o)


Wings(Posted 1+ years ago)

 My good Repleace is sweet ! [/i]

 

SimplePortal 2.3.6 © 2008-2014, SimplePortal