User Profile

Collapse

Profile Sidebar

Collapse
john Bastard
john Bastard
Last Activity: Aug 15 '10, 11:40 AM
Joined: Aug 14 '10
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • john Bastard
    replied to How to rename file to date name's ?
    in C
    Thanks for your attention, so i hope that this topic gonna help somebody one day 'cause i found a little code :

    int Refresh() {


    char NewLogName[30];
    time_t rawtime;
    struct tm * timeinfo;

    time ( &rawtime );
    timeinfo = localtime ( &rawtime );
    char s[100];



    strftime(s,30," %b.%d.%Y.%H.%M. %S.txt",timeinf o);...
    See more | Go to post

    Leave a comment:


  • john Bastard
    started a topic Del *.txt
    in C

    Del *.txt

    Hi, everybody know the commande del *.dll, when we were younger we used to creat this little virus to delete all .dll files and save it to .bat

    what I want to do is to use this commande in C/C++
    For Example : I want to write a fonction that delete all files .txt in my file C:\Text\

    If Some One have any advice you'll be welcome, thank you in advance.
    See more | Go to post

  • john Bastard
    started a topic How to rename file to date name's ?
    in C

    How to rename file to date name's ?

    Hi EveryOne I need somebody to help me for creating a little fonction that can do this :

    For Example : The file "C:\Coco.tx t" will be renamed to : "2009-09-12-03h-12min-35sec" i think it's possible.

    have a nice day
    thank you, best regards.
    See more | Go to post
No activity results to display
Show More
Working...