Programmatically change the date of a file

Is there a way to 'touch' all, or selected, files in a directory in LV?  That is, change the 'modified' date of desired files to the current date.

System Exec will allow you to run a command line program in a vi.  Look in Communications palette for System Exec vi.
- tbob
Inventor of the WORM Global

Similar Messages

  • Change the Data and Log file locations in livecache

    Hi
    We have installed livecache in unix systems in the /sapdb mount directory where the installer have created sapdata and sapdblog directories. But the unix team has already created two mount direcotries as follows:
    /sapdb/LC1/lvcdata and /sapdb/LC1/lvclog mount points.
    While installing livecache we had selected this locations for creating the DATA and LOG volumes. Now they are asking to move the DATA and LOG volumes created in sapdata and saplog directories to these mount points. How to move the data and log file and make the database consistent. Is there any procedure to move the files to the mount point directories and change the pointers of livecahce to these locations.
    regards
    bala

    Hi Lars
    Thanks for the link. I will try it and let u know.
    But this is livecache (even it uses MaxDB ) database which was created by
    sapinst and morover is there any thing to be adjusted in SCM and as well as
    any modification ot be done in db level.
    regards
    bala

  • How to change the date of a file on mac

    I have a bunch of videos taken from a Sony digital camera around 2006 2007 that I took from my windows pc and copied to my Mac but they all read 2010 now, creation date and modified date ?
    How can I change these dates and which one do I change,? Thanks

    Peruse the hits from a google search for *change modification date mac*.

  • Why does placing links in Illustrator now change the "Date Modified" data for all of my files?

    This seems to be a new glitch that started after I installed the latest updates to Illustrator CC (2014) and reoccurs every time on both computers I work on:
    When I choose to place a new image in my Illustrator file and the window opens to let me choose a file to place, the "Date Modified" field of all the files in the folder I'm viewing (except other Illustrator files) quickly changes to the current date and time. This is definitely happening when I'm in Illustrator because when I needed files from a folder that had hundreds of images in it and I was able to select a file quickly, I was able to do so before it had changed the date on all of my files. However, when I needed a file from a folder that had hundreds of images in it but I took a long time to find the image I needed, Illustrator had time to change the date modified on all of my files. This might seem like an unimportant issue because it doesn't actually seem to modify or damage any of my files, but having all of the dates change on my files is a serious problem for my workflow and file management issues. So far, my only work around has been to use back-up image files, but that's not a long term solution and I don't understand why Illustrator should be modifying the dates of my files.
    Is there a setting I can choose somewhere to prevent this problem? If not, is there somewhere I can report this kind of glitch? I'm not sure if I'm using the exact language necessary to get the issue across so please let me know if you have any questions! Thanks!

    iCloud is not compatible with Snow Leopard, that is your problem.
    A quick way out is to purchase Soho Organizer which is compatible, even when running on Snow Leopard, it will correctly handle Contacts and Calendars from iCloud. $100, 2 user license.
    Soho Organizer
    There is a free trial if you want to try it.

  • I am trying to change the date on an imported home video clip. I entered 9/7/2012 and got 6/9/0339! I checked modify original file, but it is not working. Any ideas?

    I am trying to change the date on an imported home video clip. I entered 9/7/2012 and got 6/9/0339! I checked modify original file, but it is not working. Any ideas?

    Are you using the Adjust Date and Time option or the Batch Change option?  If it's the former try the latter.  If you get the same results  launch iPhoto with the Option key held down and create a new, test library.  Import  the same video file and check to see if the same problem persists.
    OT

  • When I imported my photos to iphoto 11 from an external drive they were no longer chronologically organized in folders by year & month. In fact, it changed the dates & years of the files so I can't even manually organize them.

    When I imported my photos to iphoto 11 from an external drive they were no longer chronologically organized in folders by year & month. Instead, they all went into one folder within a 2011 folder. In fact, it randomly changed the dates & years of all the files so I can't even manually organize them now.

    Are you sure that iPhoto is the app for you?
    iPhoto is designed to help you organise your Photos, but you seemed focussed on organising files.
    The idea is simple: organise them as you want in the iPhoto Window. As I said above, as you never access the files on the HD then how iPhoto stores them is of no relevance. (It's by date of import BTW).
    Where are you seeing these changed dates? In the iPhoto Window ? Somewhere else?
    Regards
    TD

  • Dumping the data to XML file (Event driven )

    Hi ,
    Can anybody help me on this requirement .
    Whenever there is an updation or change in the HR Master data like insertion of new personnel number or deletion of personnel number then I need to dump the data to XML file . That means I need to make it event driven.
    Will it be possible programmatically ?
    Please give me your inputs.
    Best Regards
    Bhagat.

    Hi Bhagat,
    isn't it possible to use change pointers for this?
    Then in partner profile use an XML file port and it should be done!
    Probably this blog could help you:
    <a href="/people/stefan.grube/blog/2006/09/18/collecting-idocs-without-using-bpm">Collecting IDocs without using BPM</a>, have a look at the part where it explains how to write Idoc as XML.
    Hope it helps,
    Kind Regards,
    Sergio

  • Trying to programmatically set the data-source for a Crystal reports report.

    I've got the following existing procedure that I need to add to in order to programmatically set the data-source (server, database, username, and password) for a Crystal reports report.
     I added the connectionInfo parts, but can’t figure out how to attach this to the existing
    this._report object.
    This is currently getting the connection data from the report file, but I now need to populate this connection data from a 'config.xml' text file.
    Am I trying to do this all wrong?
    using System;
    using System.Collections.Generic;
    using System.Linq;
    using System.Text;
    using CrystalDecisions.CrystalReports.Engine;
    using WGS.Reports.Reports;
    using CrystalDecisions.Shared;
    using WGS.Reports.Forms;
    namespace WGS.Reports
    public class ReportService
    ReportClass _report;
    ParameterFields paramFields;
    ConnectionInfo connectionInfo; // <- I added this
    public ReportService()
    public void DisplayReport(string reportName, int allocationNo)
    if (reportName.ToLower() == "allocationexceptions")
    this._report = new AllocationExceptions();
    PrepareConnection(); // <- I added this
    PrepareAllocationExceptionReport(allocationNo);
    this.DisplayReport();
    private void PrepareConnection() // <- I added this
    //test - these will come from the config.xml file
    this.connectionInfo = new ConnectionInfo();
    this.connectionInfo.ServerName = "testserv\\test";
    this.connectionInfo.DatabaseName = "testdb";
    this.connectionInfo.UserID = "testuser";
    this.connectionInfo.Password = "test";
    this.connectionInfo.Type = ConnectionInfoType.SQL;
    private void PrepareAllocationExceptionReport(int allocationNo)
    this.paramFields = new ParameterFields();
    this.paramFields.Clear();
    ParameterField paramField = new ParameterField { ParameterFieldName = "@AllocationNo" };
    ParameterDiscreteValue discreteVal = new ParameterDiscreteValue { Value = allocationNo };
    paramField.CurrentValues.Add(discreteVal);
    paramFields.Add(paramField);
    private void DisplayReport()
    frmReportViewer showReport = new frmReportViewer();
    showReport.ReportViewer.ReportSource = this._report;
    showReport.ReportViewer.ParameterFieldInfo = paramFields;
    showReport.ShowDialog();
    showReport.Dispose();
    Any help would be much appreciated.

    Hi Garry,
    Please post SAP Crystal Reports questions in their own forums here:
    SAP Crystal Reports, version for Visual Studio
    We don't provide support for this control now. Thanks for your understanding.
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • Trying to change the data source for a Crystal Report.

    <p>The method below represents my best attempt to programatically change the data source of a Crystal Report. The goal is to have a routine that will update the data source for reports after they have been distributed to production servers. So far I have not been successful in saving the report back to the CMS. No exceptions are thrown, but when I view the Database Configuration of the report in the CMC nothing has changed.
    </p>
    <p>
    Am I missing a step, or is there another way to accomplish this?
    </p>
    <p>
    Thank you.
    </p>
    <hr />
    <pre>
    private void test(String reportName)
       throws SDKException, ReportSDKException, java.io.IOException
       IInfoObjects newInfoObjects;
       IInfoObject reportObj;
       ReportClientDocument clientDoc = new ReportClientDocument();
       DatabaseController dc;
       PropertyBag pBag;
       PropertyBag logonProps;
       ConnectionInfo newConInfo;
       ConnectionInfo oldConInfo;
       ConnectionInfos conInfos;
       int connOptions = DBOptions._ignoreCurrentTableQualifiers + DBOptions._doNotVerifyDB; //0;
       Fields connFields = null;
       String queryStr = "Select * From CI_INFOOBJECTS " +
          "Where SI_NAME='wfr.rpt' AND SI_KIND='CrystalReport' AND SI_INSTANCE=0";
       newInfoObjects = getCms().executeQuery(queryStr);
       if(newInfoObjects.size() > 0)
          reportObj = (IInfoObject)newInfoObjects.get(0);
          try
             clientDoc = getCms().getReportAppFactory().openDocument(
                reportObj
                , OpenReportOptions._refreshRepositoryObjects
                , java.util.Locale.US);
             dc = clientDoc.getDatabaseController();
             conInfos = dc.getConnectionInfos(null);
             for(int i = 0; i < conInfos.size(); ++i)
                oldConInfo = (ConnectionInfo)conInfos.getConnectionInfo(i);
                newConInfo = (ConnectionInfo)oldConInfo.clone(true);
                pBag = newConInfo.getAttributes();
                pBag.putStringValue("QE_ServerDescription", "alio");
                logonProps = new PropertyBag();
                logonProps.putStringValue("Trusted_Connection", "false");
                logonProps.putStringValue("Server", "alio");
                pBag.put("QE_LogonProperties", logonProps);
                newConInfo.setUserName("admin");
                newConInfo.setPassword("password");
                dc.replaceConnection(
                   oldConInfo
                   , newConInfo
                   , connFields
                   , connOptions);
          catch(ReportSDKServerException Ex)
             String msg = "A server error occured while processing the " + reportObj.getKind()
                + " object, " + reportObj.getTitle() + " (" + reportObj.getCUID() + "), from the CMS.";
             Utility.errorOut(msg, Ex);
          catch(Exception Ex)
             String msg = "An error occured while processing the " + reportObj.getKind()
                + " object, " + reportObj.getTitle() + " (" + reportObj.getCUID() + "), from the CMS.";
             Utility.errorOut(msg, Ex);
          finally
             clientDoc.save();
             getCms().commitToInfoStore(newInfoObjects);
             clientDoc.close();
    </pre>
    Edited by: Mark Young on Sep 10, 2009 2:16 PM

    <style type="text/css">
    /<![CDATA[/
        body
            font-size: 1.125em;
              font-family: helvetica,arial,"sans-serif";
          .code{font-family: "courier new",courier,mono,monospace}
          .bi{font-style: italic; font-weight: bold;}
    /]]>/
    </style>
    <p>Justin,</p>
    <p>
    Thank you for the reply. Time constraints have not allowed me to post back to this tread
    till now. I will try your suggestion. My assumption is that <i>Save the report back to the
    info store</i> refers to <span class="code">IInfoStore.commit(IInfoObjects)</span>.
    </p>
    <p>
    I'm afraid that I do not understand why I don't want to change the report client document,
    or why <i>successfully exporting the report with the new login/password</i> is not what I
    want to do. Any explanation on that statement would be appreciated.
    </p>
    <p>
    I did find a way to accomplish my goal. It involved adding the SSOKEY property to the
    logon property bag. Below you'll see my revised code which modifies the report logon and
    server. I have no idea what
    this does, and SAP support has not been able to tell me why it works. However, what I
    discovered is that if I changed the report option, <b>Database Configuration -> When
    viewing report:</b>, in the CMS to <span class="bi">Use same database logon as when report
    is run</span> from <span class="bi">Prompt the user for database logon</span>, then the
    SSOKEY property had been added to the logon property bag having an empty string as its
    value. This allowed me to successfullyupdate and save the modified logon back to the CMS.
    </p>
    <p>
    So I took a chance and added code to always add the SSOKEY property with an empty string
    as its value, and I could then successfully modify and save the report's logon info
    and server. Again, I don't know what this means, but it has worked so far. If anyone has
    some insight or comments, either are welcome. Thank you in advance.
    </p>
    <br />
    <hr />
    <pre>
    private void changeDataSourceOfAWFCrystalReports()
       throws SDKException, ReportSDKException, java.io.IOException
       IInfoObjects newInfoObjects = null;
       IInfoObject reportObj = null;
       IReport curReport = null;
       ReportClientDocument clientDoc = new ReportClientDocument();
       DatabaseController dbController;
       PropertyBag pBag;
       PropertyBag logonProps;
       ConnectionInfo newConInfo;
       ConnectionInfo oldConInfo;
       ConnectionInfos conInfos;
       int connOptions = DBOptions._ignoreCurrentTableQualifiers + DBOptions._doNotVerifyDB;
       Fields connFields = null;
       String outputStr;
       int numOfReports;
       int numOfQueryPages;
       double progressIncrementPerPage = 30;
       int progressIncrementPerReport = 0;
       // Path query to reports is in a .properties file.
       String queryStr = getAppSettingsFile().getWscAwfCrystalReportPathQuery();
       try
          // Executes IInfoStore.getPageingQuery() and generates a list of queries.
          getCms().setPathQueryQueries(queryStr, 100);
          numOfQueryPages = 0;
          // Gets a List&lt;String&gt; of the IPageResult returned from IInfoStore.getPageingQuery().
          if(getCms().getPathQueryQueries() != null)
             numOfQueryPages = getCms().getPathQueryQueries().size();
          if(numOfQueryPages &gt; 0)
             // Use 30% of progress bar for the following loop.
             progressIncrementPerPage = Math.floor(30.0/(double)numOfQueryPages);
          for(int queryPageIndex = 0; queryPageIndex &lt; numOfQueryPages; ++queryPageIndex)
             // Gets the IInfoObjects returned from the current page query
             newInfoObjects = getCms().getPathQueryResultSetPage(queryPageIndex);
             numOfReports = newInfoObjects.size();
             if(newInfoObjects != null && numOfReports &gt; 0)
                progressIncrementPerReport =
                   Math.round((float)Math.floor(progressIncrementPerPage/(double)numOfReports));
                for(int reportIndex = 0; reportIndex &lt; numOfReports; ++reportIndex)
                   reportObj = (IInfoObject)newInfoObjects.get(reportIndex);
                   curReport = (IReport)reportObj;
                   clientDoc = getCms().getReportAppFactory().openDocument(
                      reportObj
                      , OpenReportOptions._refreshRepositoryObjects
                      , java.util.Locale.US);
                   dbController = clientDoc.getDatabaseController();
                   conInfos = dbController.getConnectionInfos(null);
                   for(int conInfosIndex = 0; conInfosIndex &lt; conInfos.size(); ++conInfosIndex)
                      oldConInfo = (ConnectionInfo)conInfos.getConnectionInfo(conInfosIndex);
                      newConInfo = (ConnectionInfo)oldConInfo.clone(true);
                      pBag = newConInfo.getAttributes();
                      pBag.putStringValue(
                         "QE_ServerDescription"
                         ,getConfigFile().getDBDataSourceConnections());
                      logonProps = new PropertyBag();
                      logonProps.putStringValue("Trusted_Connection", "false");
                      <b>logonProps.putStringValue("SSOKEY", "");</b>
                      logonProps.putStringValue(
                         "Server"
                         ,getConfigFile().getDBDataSourceConnections());
                      pBag.put("QE_LogonProperties", logonProps);
                      newConInfo.setUserName(getConfigFile().getUNVConnectionUserName());
                      newConInfo.setPassword(getConfigFile().getUNVConnectionPasswordDecrypted());
                      dbController.replaceConnection(
                         oldConInfo
                         , newConInfo
                         , connFields
                         , connOptions);
                      newConInfo = (ConnectionInfo)conInfos.getConnectionInfo(conInfosIndex);
                   } // end for on conInfosIndex
                   clientDoc.save();
                } // end for on reportIndex
             } // end if on newInfoObjects
          } // end for on queryPageIndex
       } // end try
       catch(ReportSDKServerException Ex)
          // handle...
       catch(Exception Ex)
          // handle...
       finally
          getCms().commitToInfoStore(newInfoObjects);
          if(clientDoc != null)
             clientDoc.close();
    </pre>

  • In iPhoto 11 changing the Date and Time EXIF becomes Garbage?

    Hi- the new photo date I choose for a photo (say 1946) turns into garbage after saving - like 1165 or 1492- ( and Columbus would be suprised).
    Detail: About 5 years ago in Windows PC in  XP folders  I scanned old family pics into folder for 1946 and all was well= until few months back in 2011 I crossed over to Mac Book Air and  iPhoto 11.
    However iphoto  doesnt care for file name- Its sorts all in event date based on scan date- exif date-  embedded by the scanner when I did it. OK. Smarter.
    So to change its date I select each photo in iphoto11- then  select "change date" and changed the date what I want it to say (like   06/06/1946) - and saved .
    Problem. Now it has two dates against it - one date in year 1492 and the other in 1765- .
    I have tried changing the date differently using  the little Up or Down arrows, and its scrolls (eventually!) to 1946 -I  do a save..... and another crazy date turns up-
    Am guessing so its got to be a trick related to the " day counter"- mind you I dont see the pint of telling me that my photo is having its date changed by some quantity of thousands of days- Doh that sounds very Windows like.
    I must be doing it wrong.
    Any experts please?
    Thanks in advance !

    Thanks AppleMan1958, you're right.
    My view was set to Favorites and Unmarked so when I imported the video, rejected parts of it, and THEN changed the date I was unable to see that I wasn't changing the date on the rejected portion. I changed the view to All Clips (in the View menu) and then I could plainly see that the rejected clips still had the current date.

  • How do I *REALLY* change the date on photos?

    I'm having trouble with this, and I'm sure there has to be a fix.
    Let's say I took a group of photos last week. But oops, I forgot to set the date and time on my camera. So when I import the photos, iPhoto places them under April 2004 instead of June 2007.
    No problem. I select all the photos, do a batch change on the date, and they now "appear" to be taken in June 2007.
    But they weren't really changed. If you view the info for the photos, you'll see that they are still marked as April 2004 for the original date.
    So basically iPhoto has set-up some type of filter to show the photos in 2007, even though the computer still believes they are from 2004.
    This became a big problem when I imported my library to my new Mac. Perhaps I did something incorrectly, but I had quite a few imported photos that reverted back to their Original date, instead of the fake one I had set up in iPhoto. So my Library was a mess and I had to re-organize my collection.
    This problem would be avoided if iPhoto really and truly changed the date timestamp on my pictures, as I asked.
    I've downloaded several programs that offer photo meta editing. None of them did the job. They just changed the photo "Date Modified" to be June 2007. But if you look at their properties, they still show 2004 as the Original Date.
    Mac OS X is a very smart system. Surely there is some way to truly force change the dates on photos. Afterall, they are just data in themselves. I can't imagine there isn't a way.
    Can you help? Is there a work-around in iPhoto or OSX, or a separate program I can download?
    Thanks!
    MacBook Pro Mac OS X (10.4.10) iPhoto 6.0.6
    MacBook Pro   Mac OS X (10.4.10)   iPhoto 6.0.6

    Jon:
    Dragging the thumbnails to the desktop and exporting are essentially the same process, producing copies of the full sized image file. Exporting gives you other options, however. Once you get the photos out of iPhoto you can run PhotoInfo on them and then import as new files. iPhoto will see those new files with the correct date. If you try running PhotoInfo on files already in iPhoto, you can change the EXIF Capture Date in the file but iPhoto won't recognize the changes.
    Do you Twango?
    TIP: For insurance against the iPhoto database corruption that many users have experienced I recommend making a backup copy of the Library6.iPhoto database file and keep it current. If problems crop up where iPhoto suddenly can't see any photos or thinks there are no photos in the library, replacing the working Library6.iPhoto file with the backup will often get the library back. By keeping it current I mean backup after each import and/or any serious editing or work on books, slideshows, calendars, cards, etc. That insures that if a problem pops up and you do need to replace the database file, you'll retain all those efforts. It doesn't take long to make the backup and it's good insurance.
    I've written an Automator workflow application (requires Tiger), iPhoto dB File Backup, that will copy the selected Library6.iPhoto file from your iPhoto Library folder to the Pictures folder, replacing any previous version of it. You can download it at Toad's Cellar. Be sure to read the Read Me pdf file.

  • Why does iCal automatically change the date of the entry i am making to the day before??

    why does iCal automatically change the date of the entry i am making to the day before??
    for example, when i am attempting to make a 'all-day' appointment on october 2nd 2011, it automatically shifts it to october 1st.
    but if i am doing a timed appointment for only a few hours, it will allow me to put it on that day.
    i am trying to put in travel dates so any help on how to fix this, would be greatly appreciated.

    alsdman,
    Quit iCal, and try removing the com.apple.iCal.plist file from your Macintosh HD/Users/yourusername/Library/Preferences Folder. Since that Library is now hidden, you have to use the Finder>Go Menu>Depress the "Option" key>Library. Drag the .plist file to your desktop, and log out/in or restart and check iCal for functionality.
    Also go to System Preferences...>Language & Text>Formats>Region: and set/re-set the appropriate "Region."

  • How do I change the date of pictures in an event?

    I have just noticed, the date on pictures in an event are incorrect ( Jan 2099 ).I have tried to change it, but it will not allow me to, any ideas?

    The date is taken from the EXIF data in the picture file.  That data is added by the camera when you took the photo.  First thing to do is to check the date and time on your camera, so this problem does not continue going forward. 
    It appears that iPhoto does not allow you to adjust the EXIF data, so I don't think you will be able to change the date, at least using iPhoto.  There may be some software out there that allows you to do this, but I am not aware of any.

  • PSE 10 tossing images in trash after I change the date on a mac

    Is it normal for PSE 10 to throw images in the trash after I change the date of a image? I have a bunch of images that came in with the wrong date from my camera, I decided finally to correct the date. I noticed my trash can suddenly with content, I opened it and all the images I changed the date on were in the trash can. This makes me nervous if I should empty the trash. Is this normal for these images to get tossed? It doesn't keep the original somewhere?
    I'm on a macbook pro, os x 10.7.2 lion.

    Hi,
    If you are adjusting date time of your images, the new images with new date time are created with the same name as the older ones. So they replace the old files on the disk location. As such the older files (with old date time) are sent to trash. Also, why would one want to clutter his catalog with duplicates having one set of wrong timed media and a duplicate set of correctly timed media.
    I guess this is how organizer understands the workflow.
    So possibly you can safely empty your trash, but this does mean loosing out on your 'old-timed' media.
    Thanks
    andaleeb

  • Changing the date on photos in Iphoto.

    How can you change the date on your photos without iphoto creating a "range" between the wrong date and the updated "new" date?  I just want ONE correct date on my photos but when I alter the info under edit and i - it creates a "range" date like 1/2009-7/2011 and i just want 7/2011. 

    If you want all of the photos to have the same date with maybe 1 or 5 seconds between them use the File ➙ Batch Change ➙ Date menu option.
    Click to view full size
    OT

Maybe you are looking for

  • Digital Signatures not enabled in Reader 8

    I have created a form in LiveCycle Designer 8 and I have used the Digital Signature feature, but when the end user opens it up in Reader 8 they are unable to sign the document. Am I missing something is the creation side of it?

  • Validation in MIGO on Post

    Hi all, I am trying to Post a Purchase order in MIGO. It should display a message saying ' Please do goods receipt using Inbound delivery' If an inbound delivery exists for that particular Purchase order. If i am posting an inbound delivery in MIGO.

  • Z10 typing not working

    sorry maybe for doubleposting. got my z10 stl100-2 with 10.2.1.2997. did initial setup. after using BBM and browser the keyboard stopped working: the text cursor was blinking, also the key tone can be heard but no characters come out in the writing l

  • How to implement CO in DBM Environment

    pls let me know how to impelment the CO in DBM senario. How it is different from normal senario.

  • Add button in hierarchical list

    Hi, I would like to ask if I can add a button Excel in Place in ALV hierarchical list? If so, how can I do that? I'm using the CALL FUNCTION 'REUSE_ALV_HIERSEQ_LIST_DISPLAY'. Your help is much highly appreciated! Thanks in advance! Edited by: ysera a