File when copied , is having the current timestamp instead of original time

Hello,
I am copying a file file-1(x-date) from server-A to Server-B. when the file-1 is copied to server-b, the size and everything remains fine but the timestamp changes to current timestamp.(Y-DATE)
my issue : I want to the file when copied to have original time-stamp(X-DATE)
any idea why this is happening ???
Thanks

BigDaddyLoveHandles wrote:
Skotty wrote:
You might not think that you could set the last modified date manaully, but alas, you can:
[http://java.sun.com/j2se/1.4.2/docs/api/java/io/File.html#setLastModified(long)]
Oh lackaday! Why "alas"?It's suuuuuch a hassle!

Similar Messages

  • PLS-00103: Encountered the symbol "end-of-file" when expecting one of the f

    I'm trying to follow an example pl/sql program to select from one table and insert into a second table in a LOOP.
    I get a syntax error which I can't figure out
    Line # = 67 Column # = 0 Error Text = PLS-00103: Encountered the symbol "end-of-file" when expecting one of the following:
    begin case declare end exception exit for goto if loop mod
    null pragma raise return select update while with
    <an identifier> <a double-quoted delimited-identifier>
    <a bind variable> << close current delete fetch lock insert
    open rollback savepoint set sql execute commit forall merge
    pipe
    What is the cause?
    IS
    BEGIN
    declare
    v_pk1 bb_bb60_stats.pk1%TYPE;
    v_event_type bb_bb60_stats.event_type%TYPE;
    v_user_pk1 bb_bb60_stats.user_pk1%TYPE;
    v_course_pk1 bb_bb60_stats.course_pk1%TYPE;
    v_group_pk1 bb_bb60_stats.group_pk1%TYPE;
    v_forum_pk1 bb_bb60_stats.forum_pk1%TYPE;
    v_internal_handle bb_bb60_stats.internal_handle%TYPE;
    v_content_pk1 bb_bb60_stats.content_pk1%TYPE;
    v_data bb_bb60_stats.data%TYPE;
    v_timestamp bb_bb60_stats.timestamp%TYPE;
    v_status bb_bb60_stats.status%TYPE;
    v_session_id bb_bb60_stats.session_id%TYPE;
    v_messages bb_bb60_stats.messages%TYPE;
    INSERT_COUNT NUMBER := 1;
    CURSOR curs_aa
    IS
    SELECT * from bb_bb60_stats.activity_accumulator ;
    BEGIN
    OPEN curs_aa;
    LOOP
    FETCH curs_aa into
    v_pk1,
    v_event_type,
    v_user_pk1 ,
    v_course_pk1,
    v_group_pk1,
    v_forum_pk1,
    v_internal_handle,
    v_content_pk1 ,
    v_data,
    v_timestamp ,
    v_status ,
    v_session_id ,
    v_messages;
    INSERT INTO csuh_custom.aa_partitioned
    VALUES
    v_pk1,
    v_event_type,
    v_user_pk1 ,
    v_course_pk1,
    v_group_pk1,
    v_forum_pk1,
    v_internal_handle,
    v_content_pk1,
    v_data,
    v_timestamp,
    v_status,
    v_session_id,
    v_messages
    -- commit after every 100 inserts to avoid large rollback segments
    IF INSERT_COUNT = 25000 THEN
    COMMIT;
    INSERT_COUNT := 1;
    ELSE
    INSERT_COUNT := INSERT_COUNT + 1;
    END IF;
    END LOOP;
    CLOSE curs_aa;

    When I add the END;
    I get
    Line # = 66 Column # = 0 Error Text = PLS-00103: Encountered the symbol "end-of-file" when expecting one of the following:
    begin case declare end exception exit for goto if loop mod
    null pragma raise return select update while with
    <an identifier> <a double-quoted delimited-identifier>
    <a bind variable> << close current delete fetch lock insert
    open rollback savepoint set sql execute commit forall merge
    pipe

  • Verify which  parsed timestamp folder is closer to the current timestamp

    Hi,
    I have "n" number of timestamps in a folder like :-
    2010_08_04_15_14_57 (yyyy_dd_mm_h_mm_ss)
    2010_08_04_15_15_57
    2010_08_04_15_16_57
    From these folders I need to pickup the latest(recent) timestamp folder, here it is 2010_08_04_15_16_57. For this to happen I need to check if any of these timestamp folders is close to the current timestamp, so that i can make sure that particular folder is the recently created one? How to find that whether the timestamp folder is close to the current Timestamp, because Calendar & Date classes have the before() & after(), but there is no API to find which of these timstamp folders are close to the Current timestamp? Please shed some light into this.
    Thanks in advance.

    AnanthJava wrote:
    Hi,
    I have "n" number of timestamps in a folder like :-
    2010_08_04_15_14_57 (yyyy_dd_mm_h_mm_ss)
    2010_08_04_15_15_57
    2010_08_04_15_16_57
    From these folders I need to pickup the latest(recent) timestamp folder, here it is 2010_08_04_15_16_57. For this to happen I need to check if any of these timestamp folders is close to the current timestamp, so that i can make sure that particular folder is the recently created one? How to find that whether the timestamp folder is close to the current Timestamp, because Calendar & Date classes have the before() & after(), but there is no API to find which of these timstamp folders are close to the Current timestamp? Please shed some light into this.
    Thanks in advance.If there are no other type of files or folders in the the folder containing these time stamp folders then you can use File.listFiles() and use Arrays.sort() on them to give the most recent time stamp folder in the last element. If there are other types of folder and files, then it would be necessary to implement FileFilter and use File.listFiles(FileFilter). The advantage is you have a File reference to the time stamp folder you presumably ultimately need.
    Edited by: pete_d on Aug 4, 2010 9:41 AM
    how strange. I was replying when it got moved.

  • Acrobat Pro "save as" function in the file menu does not show the current directory of the file

    I have installed CC but Acrobat Pro gives me headaches.
    The "save as" function in the file menu does not show the current directory of the file but something I have worked on in the past.
    It forces me to navigates through my hard disk for this very straightforward thing in normal conditions. I precise: Acrobat is the only software reacting like that.
    I use Windows7 professional 64bits.

    I use what seems to be the latest version available on the Cloud:
    To illustrate my point, I open a directory with explorer and double-click on the only PDF in there:
    So here it is, open:
    When I do a "Save as", it takes me to a totally different place on the disk!
    Very annoying...
    Thanks for your time!
    JJ

  • Error when trying to refresh the current report

    I am having this error message "Error when trying to refresh the current report on my reports appear before they are executed. It has been a very random so I am unable to pinpoint what is causing it. I am currently working with BO 4.1 and it is connected to BW, whereby the authentication is SSO.
    Either way the reports are able to run with problems but I dislike having to insist with the refresh button or having to close and reopen the report for it to run as it should.
    I did some investigations but did not find anything conclusive because there is no problems with authorizations, there are no merged dimensions nor grouping variables used in the report and it is based on just one query.
    Does anyone know why this error message appears? What its cause is?

    Hi
    While creating the report if we select the authentication mode as :Use specified user name and password or Use Business Objects credential mapping, will get the same error.
    So if possible can you please test change Connection Type Authentication Mode to Single Sign on.
    Find the below link.
    http://scn.sap.com/community/semantic-layer/blog/2014/06/06/how-to-change-connection-type-authentication-mode-to-sso-1

  • I can't find my root files when I click on the pictures icon in iPhoto

    I can't find my root files when I click on the pictures icon in iPhoto, I'm having a huge problem and I can seem to access the files and not sure where they are?

    See the user tip on accessing your files in iPhtoo
    LN

  • HT1461 For Boot Camp, if you save a file when you are on the Windows side, when you return to the Mac side, can you see the file or can it only be "seen" on the operating side you create it in?

    For Boot Camp, if you save a file when you are on the Windows side, when you return to the Mac side, can you see the file or can it only be "seen" on the operating side you create it in?

    Why don't you  (generic most every post lacks critical details) be clear and say you never used Mac OS etc.
    But, I did try to anticipate and give you what you needed.
    Excel is one of those rare programs that, if they are extremely large complex spreadsheets still tend to run better under Office for Windows.
    A VM won't do for that but it does make it easier to transition. As in: install Windows natively, then use VMware Fusion or Parallels to attach to the partition and OS. That way you can run Windows as Guest OS VM under Mac; and still run Windows natively dual-boot when needed.
    The word "see" was not what you wanted, was it? really? you want to open and make changes and keep it on Windows side rather than Save As or copy to Mac
    You use Windows and don't know it has NTFS (NT FileSystem)?
    http://en.wikipedia.org/wiki/NTFS
    http://en.wikipedia.org/wiki/Hierarchical_File_System (HFS) native file system used by Apple
    And there is much more UEFI style "bios" and other things I suppose.
    Great thing about Google and encyclopedias or dictionary, you can look up what you don't know.

  • Error in script task "The name 'file' does not exist in the current context"

    I am new to the c# scripting and SSIS come from PHP and Foxpro.
    I am using SSIS with a script task and I am getting am errror "The name 'file' does not exist in the current context" in the following code in the picture below: (See
    Why does the object named "file" go away after the first refrence to it?? How do I make it avaliable for the whole script??
         public void Main()
            String cFileInfo = null;
            DateTime dFTPFileDateTime;
       bool fireAgain = true;
                List<IRemoteFileInfo> fileList = (List<IRemoteFileInfo>)Dts.Variables["SFTPResult"].Value;
                foreach (IRemoteFileInfo file in fileList)
                    cFileInfo = file.Name + "|" +file.ModifiedTime +"|"+ file.Size;
                Dts.Events.FireInformation(1, "Name ", cFileInfo, "", 0, ref fireAgain);
                dFTPFileDateTime =
    file.ModifiedTime;
    << This is where the error is occuring. 
                Dts.TaskResult = (int)ScriptResults.Success;

    I think you forgot { and } after the loop... Or is that deliberately?
    Please mark the post as answered if it answers your question | My SSIS Blog:
    http://microsoft-ssis.blogspot.com |
    Twitter

  • How can I get a file to copy all of the files in a directory except itself and the source of the copy function will be the directory the final program is in?

    How can I get a file to copy all of the files in a directory except itself and the source of the copy function will be the directory the final program is in? This application must be in Lab View 8.

    you mean something like this (see below)?
    Now you may have to implement code to check if the destination folder exists and to create it, etc.  But if you use the Front Panel Control to select the destination folder, it should be okay.
    Not the best implementation, mind you but you'll get the idea..
    Message Edited by JoeLabView on 04-18-2007 03:43 PM
    Attachments:
    copy folder contents.PNG ‏10 KB

  • Error when trying to refresh the current report-Invalid prompt def.WIS00005

    I am trying to create a Webi report using a Universe created with Universe Design Tool 4.0. I have created a new universe with a secured relational connection from a cube in our BBD system. The Universe can be created and exported in UDT (and when I test the connection, I get a message saying the server is responding). I can see values for the BEx query in BEx analyzer.
    When I open Webi and connect to a universe, I can see the universe, but when I put a dimension to our results tab and go to "run query", I first get the error "Error when trying to refresh the current report". If I close this error I get the error "Invalid Prompt Definiton - WIS00005". Has anybody else had this issue and if so, where can I begin to troubleshoot the error?

    Hi,
    Please note that if the object parses at Universe level it may still fail at runtime especially for the prompts.
    If you still experience the error after applying Patch 11 please analyze the characteristics of the prompt, get some trace logs with High level of detail, they surely  will help.
    Thanks!
    Best regards,
    Simone

  • It's like my battery died, blach screen and just appears the "charge symbol" when i connected to  the current

    it's like my battery died, blach screen and just appears the "charge symbol" when i connected to  the current And when it is restored error 1602 on itunes. I'm desperate

    I suppose. I tried with external charger, computer, change the usb port but nothing. But for example when it comes to wanting to restore the registry if it recognizes itune and attempts to restore it but stops and i am getting an error 1602

  • My ipod will extract the files but will not reload the current software on to the ipod

    My ipod will extract the files, it will not reload the current software so I can download my itunes back on it.

    Did you check your security software settings? iTunes for Windows: Troubleshooting security software issues

  • Complied chm file displays 'HTML help' on the title bar instead of the window name

    Complied chm file displays 'HTML help' on the title bar instead of the window name.
    I tried several ways like:
    1. Changed File>Project settings name and also set the language to English (US).
    2. Checked the Title name in .hhp file
    3. Used the window while compling.
    4. Robohelp language settings.
    5. Also uninstalled and reinstalled robophelp.
    But nothing helped
    The title name is displayed correctly if the same project is compiled on another machine.

    When the code in the HHP and the regional settings on a PC match, the correct title is displayed. Or other way around is also true the help title is displayed in the language specified in the help project IF (and only if) the regional settings of the PC match that language. Otherwise, "HTML Help" is displayed.
    Hope this help.
    Thanks and Regards,
    Rahul Karn

  • Why when I text sometimes the bubble is blue and other times it's green

    why when I text sometimes the bubble is blue and other times it's green

    Blue indicates it was sent as an iMessage, green was sent as Text message (SMS)
    http://www.apple.com/ca/ios/messages/

  • [SOLVED] Authenticate with the current user instead of root on GNOME

    I am currently trying on Arch Linux. And after installing GNOME, I found that, whenever I want to change the administration settings, such as network, shared folders, date and time, users and groups, I am prompted with authentication of the root password. The current user is a wheel user, which is able to use sudo to work properly. What I want is to use the current user for authentication, so that I can lock the root password, just like Ubuntu distribution which does not need to user root password.
    Last edited by allencch (2011-03-29 00:18:26)

    I have solved the problem from the wiki. I didn't follow one of the step, because I thought it is not related to the GNOME, since there is no GNOME keyword. To make the authentication using the current user instead of root, one needs to edit
    /etc/polkit-1/localauthority.conf.d/50-localauthority.conf
    modify the line to
    AdminIdentities=unix-group:wheel

Maybe you are looking for