Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Recent content by tannx

  1. tannx

    Add timestamp to filename

    Hi all! Script works well but now I need to add feature that output file will be saved useing ANSI codepage. Source files I'm useing are all saved as Unicode. all advice is welcomed. Thnx.
  2. tannx

    Add timestamp to filename

    I finally used: system ("del $input");
  3. tannx

    Add timestamp to filename

    Hi All! Need more pointers for adding features into my script. Right now when file "a" appears in folder "a" it will edited and renamed and moved into folder "b". But the original file in folder "a" does not get removed. I tought two possibilities. 1. original file in folder a gets deleted or...
  4. tannx

    Add timestamp to filename

    Thank you all for your help. And Miller your cleaned up version works perfectly, thanks. Tann
  5. tannx

    Add timestamp to filename

    I'v got it to work like this: ($sec,$min,$hour,$mday,$mon,$year,$wday,$yday,$isdst)=localtime(time); $sec=sprintf("%02d",$sec); $min=sprintf("%02d",$min); $hour=sprintf("%02d",$hour); $mday=sprintf("%02d", $mday); $mon=sprintf("%02d", $mon+1); $year=sprintf("%04d"...
  6. tannx

    Add timestamp to filename

    I'm useing the same code what I posted here. "list.ao" is text file which contain failenames what has to be converted. Script , list.ao and all the txt files are in the same folder.
  7. tannx

    Add timestamp to filename

    I can get time but im unable to but it on the filename. Well I can add date into file name but then the filename is not added itself its time or name not both
  8. tannx

    Add timestamp to filename

    For human reader. I create 20+ csv files for him every month. I would like to automate my part. What they to after is not in my contract. Unfortunately I'm never done scripting. So I'm still unable to get timestamp after filename :(
  9. tannx

    Add timestamp to filename

    I can get time now but unable to integrate it into file name. use strict; use warnings; use POSIX qw(strftime); my $date; printf(OF."%s",strftime(("%Y-%m-%d %H:%M:%S",localtime($date=time))));
  10. tannx

    Add timestamp to filename

    Below is script where it edits the file, removes txt extension and writes new file. I also need to insert timestamp into filname (fileA2007-03-25 12:01:12 ; fileB2007-03-26 10:50:55). How can I achieve that? Help needed. $failid="list.ao"; $fail=0; if (open(FAILIDcnt, $failid)) {...

Part and Inventory Search

Back
Top