Rename a file with the date and time after unziped

Iha ve a google earth kmz which is uploaded to our directory root. I am eager to see how to rename this file once it is droped in our directory. Here's what I have so far

< cfif FileExists ("#expandpath(".") ("#/ temp.zip ') >
He got... extract... < br / >
< cfzip action = 'decompress' file = "#expandpath(".")" #/ temp.zip ' "
destination = "#ExpandPath(".") #"
Overwrite = "true" >
< / cfzip >

Right now the code above decompresses the file and place the KMZ in the root of the drive. I wanted to rename the file the current date as as follows RT_2010_03_17_12_00.kmz

I have no idea how to proceed.

would probably help you find what is the dynamics of the file name.

the DateFormat() attribute should help you create a date string in the format to be used to rename the file.

Tags: ColdFusion

Similar Questions

  • How to rename a file flat concatenation date and time, file name?

    I created a package where I run a first interface that uses a flat file to a server and load into a table of Teradata.

    After using the OdiFtpPut API, I used a FTP file and send to an outfit.

    Given that this procedure works every day, I need when FTP get concatenation destination file name, the date and time of execution.

    What is the best practice for this?

    using the odi APIs, you can get the date and time

    <%=odiRef.getSysDate("dd_MM_yyyy_hh_mm_ss")%>
    

    To rename, you can use the operating system command or using the command/UNIX windows and rename the file by adding the getsystdate API.

    Hope this fixes your condition

  • Problems with the date and time - have to reset the date & time on reboot

    original title: problems with the date and time

    Whenever I turn on my computer (Windows XP 2002) I click on F2.  Then I re - set the date and time it occurred in January 2006 1 h every time I have turn off the computer.  Can someone tell me what I need to do?

    You need to replace the battery in time clock (RTC) real of your computer.  It can also be called the CMOS or BIOS battery.

    Many computers, this battery is an inexpensive CR2032 button available in almost every pharmacy corner.  There are, however, some computers (especially laptops) that require a different (and probably more expensive) battery.

    Whatever the expense, almost all of these batteries are easy to replace.

    To get help, post back with the brand and model of your computer.

  • Terrible problem with the dates and time UTC

    I have a countdown, but he seems to not work in other time zones. I think that the problem is related to my conversion to time UTC. If the end date is in UTC, so I have to convert the date now time UTC, too, but I couldn't find a way to do it. Here is my code - count is off because the end date is in UTC, but today's date is in local time. I could really use some quick help (before my end date can't!).

    Well, I have a solution, and it was much easier that it seemed to be.

    All the asp file has to say is:
    <%response.write FormatDateTime(now(),0)%>

    Then the as3 code is:

  • How to make it so that the DAY OF THE WEEK looks with the date and time?

    I had the day of the week, introduce yourself on XP, but it is a feature that they took off with Windows 7?  Does anyone know how to make it stay there permanently?

    Thank you

    Time, day and date will appear on the taskbar if you double its height. Unlock the taskbar and drag it up a notch with the mouse cursor...

  • Rename the files in a directory by adding the date and time

    Hello

    I am looking for a way to rename all the files that are in a directory with an add-on at the end with the date and time.

    for example:

    File1-> file1ddmmyyhhmi

    File2-> file1ddmmyyhhmi

    for example:

    $A = get-date-Format "yyyymmddhhmm.

    foreach-object - process ...

    Thank you.

    You can try something like this

    $A=get-date -Format "yyyymmddhhmm"
    Get-ChildItem "C:\folder" | %{
         Rename-Item -NewName ($_.Basename + $A + $_.extension) -Path $_.FullName
    }
    

    This assumes that the files are stored in C:\folder

    ____________

    Blog: LucD notes

    Twitter: lucd22

  • How to export my history of travel (including the date and time) to a text file?

    I need to collect data on the amount of time I spend on specific sites, research on my thesis topic. In my browsing history data. I need a way to export the data from the history file including the date and time information in a format that is easy to parse (.txt file delimited by commas, etc.)

    You are welcome

  • Automatically set to the Date and time does not

    Date and time settings on my iPad Air set them automatically does not work? When I turn it out it will allow me to choose a city (Knoxville).

    When I turn it on with (location settings) it just turns and turns?

    Any ideas?

    Hello and welcome to Apple Support communities,

    This problem may be caused by a number of things, most often the cause is the device not being able to contact the time server. Here are the instructions from Apple supported for this problem, as well as a link to the appropriate article.

    Follow these steps, after each step:

    1. Make sure you have the latest version of iOS.
    2. Automatically turn on set in settings > general > Date & time. This will automatically put your date and time based on your time zone.
    3. Make sure that your time zone is set correctly. Tap Settings > general > Date & time > time zone.

    If you still have any questions affecting your date, time, or time zone, you can automatically disable in the settings > general > Date & time and manually set the time and time zone. Or contact your carrier.

    The option to enable the value automatically may not be available in all countries or all shells.

    If the time on your iOS device does not go after a sync with your computer, the computer may be time wrong. Check the time on your computer in system preferences > Date & time. You can select "Set date and time automatically."

    Support the Article HT203483

    Get help with the date and time on your iPhone, iPad and iPod touch - Apple Support

    Of course, if the time of your carrier server cannot connect the other option is to manually set the date and time until the carrier server are again available.

    Hope you helps out.

    Kind regards

    Peter.

  • I want to change the file name format "save under" so the date and time are first.

    When I select a few emails and then select "Save as" to keep a copy on my computer, the name of the file that is created has the date and time at the end of the file name of the email.
    Sample "save under" file name: "Habitat Follow Up - Bryan ([email protected]) - 2011-11-15 0744.eml.
    Is it possible to change the structure or format of the file name if the date and time of the email are initially the file name?

    Try ImportExportTools and customize the format of the file name in the options.

    http://chrisramsden.vfast.co.UK/3_How_to_install_Add-ons_in_Thunderbird.html

  • How to read the date and time of a file by labview information

    How to read the date and time of a file by labview information? for example, time created and updated time.

    The similar question had already spoken here (this is the old thread but still seems topical):

    http://forums.NI.com/T5/LabVIEW/file-date-created/TD-p/109836

  • I am creating a stamp of Certification of drawing dynamic shop with fields of text 'Name' and 'Date '. I tried different ways within Javascript, but I can't seem to make it work. The Date and time remains static on the stamp when it is inserted and

    I am creating a stamp of Certification of drawing dynamic shop with fields of text 'Name' and 'Date '. I tried different ways within Javascript, but I can't seem to make it work. The Date and time remains static on the stamp when inserted and always reflect when the stamp was created and the name is always my name. I try to have the user name or the username inserted so that he who is the insertion of the postmark of the stamp automatically inserts their name and what day and time the stap is inserted. I can't get this dynamic stamp works like the default Adobe Acrobat Dynamic stamps. Can anyone help with this one. Thank you

    Have you created a page template for your stamp? Did name the template of the page correctly? It's the right format:

    #InternalStampName = display name of stamp

  • Print the PDF document with the name and the date and time of printing from the printer

    Hello

    I am fairly new to this...

    I have a PDF document and when I print it, I want the name of the printer and the print date/time to be shown on the printer output.

    I have several printers (some common and some on the network) and do not necessarily use the default. I would like the name of the printer used to be printed on the document.

    With : var = this.getField ("Printer"); h.value = app.printerNames; I am able to get the list of all available printers, but I just need one that is used.

    For the date and time, using the var f = this.getField ("Today"); f.value = util.printd ("j/mmm/yyyy", new Date()); gives me the time of when the document is opened, not when the document is printed. (or maybe I'm missing something?)

    I guess the question of the date/time is not major, because there is usually not much difference between the time that you open the document and the time you print it.

    I'm more interested in the name of the printer.

    I use Acrobat 9 Pro to edit my PDF document.

    Can someone help me please?

    Thank you!

    The name of the printer is a property of the PrintParams object. This property is updated before the PDF is sent to the printer and the name of the printer selected catalogue user interface is available in the ' Will Print' event.»

    In the document 'Will Print' action, you can use:

    pp var = this.getPrintParams ();
    this.getField('PrinterName').value = pp.printerName;

  • Need to insert the Date and time with AM or PM

    StartDate form has ' 25/07/2006' and Starttime "13:07.
    I need to add this field in the database to display the Date and time with the AM or PM. But the result I get is false.
    <! - concatenate fields - >
    "< cfset Startdate = #Startdate # &" "& #starttime # >.

    < cfset startdate = #DateFormat (CreateODBCDateTime (Startdate), ' mm/dd/yyyy hh: mm: tt ') # >
    Here is my production. This is not the AM or PM conversion part of the chain.

    25/07/2006 01:07 am

    My database is SQL 2000

    You use any of dateformat. The createodbcdatetime sends the correct your DB value if you do it right.

  • given the date and time not set when computer starts. also have a problem with typing

    by turning on my computer, sometimes it lights up at all, and then I try several times so that it lights up. When switching on the main screen, it says error due to the date and time not set and puts my computer starts in safe mode. When I am that I then have to set the date and time again. Why this keep happening?

    on my second question that I have is when I type an email or anything, my writing will just jump on another line and start typing in the middle of other sentences. Why is it jump around like that?

    You may have a failed in your motherboard CMOS battery.

    It's a battery power supply NET, size piece that keeps your system settings when your computer is off.

    They cost about $5 to replace.

    http://www.computerhope.com/issues/ch000239.htm

    How to replace the CMOS battery in the above link info.

    See you soon.

    Mick Murphy - Microsoft partner

  • How remove the date and time in image logging vision express

    I use express vision to capture a set number of images with the inline processing. I am opting to save images to a specified folder. However, the file names of the images have the date and time added by default. Is there a way to remove the date and time in the image file name? Help, please.

    Thank you very much. This has been useful. However I found another book about - I renamed it (using the movement vi) slam post files. Still, I would be interested if anyone has a better way to do it.

Maybe you are looking for