Off Topic: Change File Attributes (date)

Hi All,
Sorry this is off topic but I need a quick fix. I need to
change the date stamp on a set of files within a directory. Anyone
know a quick trick? Just need to mark all files with today's date.
We are restricted on freeware and shareware on site, so would
rather do this without downloading third party software.
thanks
Craig

Yeah I could do with a fix too, it's that sort of a day!
You are old enough and ugly enough to remember DOS. I think
you could change it there. In Windows I think you are restricted to
using third party software. I have a good programme. Want to drop
by here lunchtime with all the files on a memory stick?

Similar Messages

  • HT2470 allow user full rights ie save files in any location, change file attributes etc - how, where?

    how and where do I give my user full rights ie to save files in any location, change file attributed(from read only ) etc

    The simplest way is with the chmod Terminal command.
    Warning: unless you know exactly what you are doing, you are almost certain to break something with indiscriminate use of this command. Make sure at least your data files are backed up (& ideally in offline storage) before you experiment with this command, & note that you can mess things up enough that you will have to reinstall the OS to recover.

  • CF9/10: Change file attributes

    Hello, everyone,
    Is there a way to change the attributes of a .txt file that already exists?
    For example:  I use CFFILE to write a .txt file that is blank, and supply the "readOnly" attribute.  Later, I want to dynamically add data to the file.  How do I set the .txt file to NOT readOnly so I can add data?  And, conversely, how do I set the attribute back to readOnly?
    V/r,
    ^_^

    An example on Windows, using 3 steps:
    <cfset path_to_directory="C:\Users\BKBK\Desktop">
    <!--- Create readOnly blank text file --->
    <cffile action="write" attributes="readonly" file="#path_to_directory#\testFile.txt" output="">
    <!--- Disable readOnly attribute --->
    <cffile action="rename" attributes="normal" source="#path_to_directory#\testFile.txt"  destination="#path_to_directory#\testFile.txt">
    <!--- Write some text to file, switching readOnly attribute back on --->
    <cffile action="write" attributes="readonly" file="#path_to_directory#\testFile.txt" output="Some text">
    Done!

  • Run Batch OCR Without Changing File Modification Date

    I'm running Acrobat X Pro (as part of CS6) and would like to batch OCR all of the PDFs on my PC (probably over 1,000 files) without changing the "modify" date of the files (otherwise they will all change to the date of the OCR, which will make it more difficult to find files when sorting by date because they'll all come up as the same date).  Is there a way to do this?
    If I've posted this in the wrong place, please tell me where to post it.
    Thanks!

    No. The modification date is a system function and requires access to the file info in the file directory to change, not something that programs normally do. There are programs that allow changing the dates, or used to be anyway. All I know to do is to create a text file with a directory of the PDF files, then go back and change the dates back to those dates. It has been a while since I have played with file dates, but it might be able to be automated (though probably with a fair amount of programming skill).

  • Is it possibly to change file attributes for files in the Program Files directory?

    Hi,
    I wonder if it is possible to change file time atributes for a file that is in the same folder as the exe file inside the Program File folder. I have the following code that gives System Error Code 5.
    SHGetFolderPath(0, CSIDL_PROGRAM_FILES, 0, SHGFP_TYPE_CURRENT, programpath);
    PathAppend (programpath, TEXT("Testprogram/gnsh.dat"));
    hFile = CreateFile(programpath, GENERIC_READ | GENERIC_WRITE, FILE_SHARE_READ | FILE_SHARE_WRITE, NULL, OPEN_EXISTING, FILE_ATTRIBUTE_NORMAL, NULL);
    If this had worked, I would for instance have done like this
    GetSystemTime(&st); SystemTimeToFileTime(&st, &ft);
    timeresult = SetFileTime(hFile2, NULL, NULL, &ft);
    I am programming in C with WIndows Api.
    Thanks in advance for answer.
    Best regards

    Hi Vahmat,
    System error code 5 :
    ERROR_ACCESS_DENIED
    5 (0x5)
    Access is denied.
    I have tested your code on my side, it will get a error code 5 if you have no permission to access a file. Please try to run VS as a administrator and rebuild your project, after this , you code works well on my side.
    Best regards,
    Shu Hu
    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.

  • How I can change file time & date stamp?

    I need to change date and time info of my text file.
    Is it possible to do with labview? My application
    check the File/Directory info - last mod (U32) and
    some cases I need to change this info.
    Tapio

    There are quite a few windows version of the unix touch command which will do exactly what you need.
    I'm sure there is a way to call it even within LabVIEW, using "system exec". You might even be able to call cygwin1.dll using a "call library node" (I have not tried this).
    - There is the full featured cygwin environment for windows. "touch" is in fileutils.
    - There are also simple ports such as Touch For Windows.
    (quote from this page:
    What Does It Do?
    For those who don't know, here's a simple explanation: It updates the dates associated with a fi
    le to whatever you want it to be. It can change access, modification and creation dates. You as a user can update them independently of each other, you can update them with any possible date. Dates can be now, user specified or copied from another file. If you try to touch a file which does not exist, this command will create it for you (empty of course)." )
    LabVIEW Champion . Do more with less code and in less time .

  • Changing File Attributes

    I have a folder that was created in Windows XP and it was given the "hidden" option. I would like to remove the hidden attribute of this folder but am unable to find a way to do it in Finder. Can anyone offer instructions on how to change the hidden attribute?

    is this file on a windows formatted drive? if so you can only do it from windows.

  • Change file access date

    Anyone know how to change a file's access date? There is setLastModified() in the File class but I don't see anything for access date.

    a\Access date is just the date you last opened it. To set it, you can open it, and it will set it to todays date.

  • How do you change file creation dates

    Is there a way to edit file creation and modification dates in a file?  Thanks.

    In the Terminal:
    man touch
    setfile

  • Question about changing file attributes

    Hello,
    My application brings a support file and it copies it to another directory. Then I should make that file hidden but I cannot find a function how to do it. I guess LV doesn't have that possibility in its functions. Any pointer to a Windows component?
    Thanks,
    Marce

    Marce wrote:
    ... I should make that file hidden but I cannot find a function how to do it. I guess LV doesn't have that possibility in its functions. Any pointer to a Windows component?
    You may want to take a look at Shaun Rumball's windows_api_1.0.llb. The link to his website seems to have died, but it's been posted in this forum a lot including here.
    Try GetFileAttributes.vi and SetFileAttributes.vi.
    =====================================================
    Fading out. " ... J. Arthur Rank on gong."

  • I am receiving the data through the rs232 in labview and i have to store the data in to the word file only if there is a change in the data and we have to scan the data continuasly how can i do that.

    i am receiving the data through the rs232 in labview and i have to store the data in to the word or text file only if there is a change in the data. I have to scan the data continuasly. how can i do that. I was able to store the data into the text or word file but could not be able to do it.  I am gettting the data from rs232 interms of 0 or 1.  and i have to print it only if thereis a change in data from 0 to 1. if i use if-loop , each as much time there is 0 or 1 is there that much time the data gets printed. i dont know how to do this program please help me if anybody knows the answer

    I have attatched the vi.  Here in this it receives the data from rs232 as string and converted into binery. and indicated in led also normally if the data 1 comes then the led's will be off.  suppose if 0 comes the corresponding data status is wrtten into the text file.  But here the problem is the same data will be printed many number of times.  so i have to make it like if there is a transition from 1 to o then only print it once.  how to do it.  I am doing this from few weeks please reply if you know the answer immediatly
    thanking you 
    Attachments:
    MOTORTESTJIG.vi ‏729 KB

  • How can I change the file creation date?

    I recently downloaded more than 1,000 photos from my vacation. I'm preparing to burn DVDs for a friend, and I noticed that when I copy the photos to the desktop, they don't all have the same date. I have read a couple of discussions here about the difference between photo creation date and file creation date, and I understand the difference. But something seems odd to me.
    For purposes of illustration, let's take two photos: "A" was taken with the camera in the landscape position (how one normally holds a point-and-shoot); "B" was taken with the camera held in the portrait position (rotated 90 degrees). The photos were taken on April 24, about three minutes apart, but not imported into iPhoto until May 19.
    In iPhoto, both files show the actual creation date. Yay!
    The problem is with the files after having been copied to the desktop.
    When copied to the desktop, the info panel for photo "A" shows April 24 for both the "created" and "modified" dates. Photo "B," however, shows May 19 for the "created" and "modified" dates.
    Apparently, when the "B-style" photos were imported into iPhoto, the app automatically rotated them so that they are viewed correctly (without having to turn your head sideways). This is a very nice feature, but the result is that the file date changes.
    Is there any way to change this? I want the DVD to show the date the photo was created, not imported to iPhoto. Picky, I know … but I'm like that. 

    Apparently, when the "B-style" photos were imported into iPhoto, the app automatically rotated them so that they are viewed correctly (without having to turn your head sideways). This is a very nice feature, but the result is that the file date changes.
    Correct.  Your camera has an Auto-Rotate feature. However, the camera does not actually rotate any pixels in the file, but instead flags it with an instruction: "Display me this way". This is a tag in the Exif metadata. When you import a file with this tag iPhoto creates a modified version. It does this because most of the apps that integrate with it -  email clients, word processors etc - simply don't understand this Exif tag. So if you used the shot in a word processing doc, uploaded it to many Web site etc, the shot would come out sideways.
    iPhoto has nothing to say about File dates. There are various file utilities that will edit the dates on Files
    http://www.macupdate.com/app/mac/11143/a-better-finder-attributes
    for instance. But there are otheers, search on  MacUpdate
    Regards
    TD

  • Student file & master data change according to authority

    Deal all,
    I have following requirements about student file and master data that certain IT are not displayed when i do not have authority.
    for example, if A student is belong to my department, IT1702 must be dislayed but student B is not belong to my department IT1702 must be disabled or must dissappear.
    if i can adjust student file & master data according authority (student belong to my department or not) it would be very nice.
    regards,
    jin dal

    Hi,
    The authorizations checks in Campus Management consist of the basic authorization and the structural HR authorization.
    The basic authorization determines whether the user is allowed to execute a certain function, while the structural authorization determines the objects for which the user is allowed to execute this function. In other words, the basic authorization defines what function the user is allowed to use, and the structural authorization defines for which objects the user is allowed to use this function.
    For example, the basic authorization can define that the user is allowed to perform the create module booking activity. With the structural authorization you can restrict this activity only to modules offered by the faculty of Mathematics, for example. (The user can then access these modules whenever required; see also Structural Authorization).
    Basic Authorization
    In release CM 4.64, three authorization objects are used in Campus Management:
    At the first level is the transaction code check. The system performs this check each time the user starts a transaction using the menu or command line. For this check to be successful, the user requires an authorization for the relevant transaction code in the authorization object S_TCODE.
    At the second level, the Campus Management function is divided into two parts. The first part includes activities such as create request, create registration, create re-registration, cancel module booking, and so on. The second part covers master data like student master data and a major part of the academic structure.
    When checking the authorizations for master data, the system uses the HR authorization object PLOG for master data authorization checks. A new authorization object ( P_CM_PROC) has been implemented for activities in release CM 4.64. The system now only checks whether the user is authorized to use the activity. It no longer checks if the user is authorized to read or change the data in this activity. The new authorization concept has the following advantages:
    It simplifies authorization assignment. The system no longer uses the comprehensive data model with its many objects and object interrelationships as the basis for the activity authorization (authorization assignment via authorization object PLOG);
    Changes in the data model have no effects on the authorization checks for activities;
    It is now possible to distinguish between create and change operations, for example in re-registrations;
    You can now distinguish between re-registrations and leaves of absence.
    The table T7PIQPROCESS (Activities) contains all Campus Management activities. The system performs authorization checks for all activities with the exception of the ones listed below.
    Authorization checkes are not performed for the following activities:
    AC10 (Send Reminder for Outstanding Payments)
    HSMA (Create Status Indicator Manually)
    PR11 (Create Applicability List Automatically)
    These activities do not contain any activity-related authorization checks.
    In the standard system, the authorization check for activities is independent of the objects for which the activities are performed, and of their attributes. (The structural authorization only restricts the objects which the user can then process irrespective of the activity.). If you require additional checks, you can use the business add-in HRPIQ00AUTHORITY.
    Structural Authorization
    The structural authorization enables you to define the set of objects the user is authorized to process. You determine these objects using evaluation paths. You can define whether the user should only be given a display authorization for these objects or a maintenance authorization as well.
    You cannot combine the structural authorization with the basic authorization. The user is therefore authorized to process the assigned set of objects irrespective of the function (s)he is currently using.
    Further notes
    As functions from other applications areas (Training and Event Management, Notification Processing) and from Student Accounting are integrated in Campus Management, users also need authorizations from these areas.
    Campus Management contains a number of roles which you can combine with the roles of other application areas to create composite roles. You can either assign a composite role or individual roles to users.
    Component Prefix of the roles provided
    Campus Management SAP_CM_
    Training and Event Management SAP_HR_PE
    Notification processing SAP_CA_NO_NOTIF
    Student Accounting SAP_FI_CA_
    You create the business partner authorizations in separate IMG activities which you can find in Customizing for Campus Management in Campus Management Master Data -> Students -> Students as Business Partners -> Basic Business Partner Settings -> SAP Business Partner -> Business Partner -> Basic Settings -> Authorization Management.
    In the SAP Reference IMG under Basis Components -> System Administration -> Users and Authorizations, you can find more IMG activities in which you can make general settings for authorizations.

  • Exporting or relocating masters changes the created date on the new image/file/s ?

    When I export or relocate masters onto hard drive (internal or external) it changes the created date? I have tried every option possible with no resolve. Can anyone help? eg. img98007.jpg (arranged by date in aperture and is 12/05/2001) when saved/created on the hard drive the created date will be 27/06/2008????

    I'm afraid you've lost me.
    You started off (it seemed) by asking why the image EXIF date in Aperture was different then the image file date in the Finder.
    The best I can say is that when an image is captured in a camera you get one date. When that image is made into a computer file the file will have another date.
    I want to consolidate/sync all my files over the last decade from iphoto libraries etc. The only way to do this is to import them into aperture then export them to the finder with the correct shot dates so I can sync all images.
    If it changes the created date etc. it will be impossible to do so??
    What do you mean by this? I can understand the consolidate, you want to move all your images from all sources into Aperture, not a problem, but what is the sync part referring to? And why do you feel you need to export them from Aperture once you have imported them?
    And again the created date of a file is the date the file is created it has nothing to do with the image creation date.
    Sorry I can't be of more help,
    regards

  • Image file access dates changing in mass (Windows).

    In review of the access date properties for image files within a directory being accessed by Bridge within the Favorites area, they are all changing to the current time and date, even if the image is not viewed within Bridge.  Why are the access dates of image files being changed even though they are not viewed?  This makes it hard to determine whether an image can be archived or deleted based on last access if Bridge is always changing the access date every day.  Thanks for any insight you can give on this!

    Is there a way to turn off the caching of thumbs or metadata or whatever is causing the Access date to change when searching or reviewing images within a directory using Bridge?
    As said, no experience with network environment. But Bridge is a browser and when you want to view things it needs to cache the file and data first.
    Having said that, in normal usage (stand alone) it stores and saves this data in the cache folder and once it has done so it will not need to recache until you have made changes to the file. Check Bridge prefs / Cache/ Location  to see where the data is stored when you are using this machine.
    By default on a stand alone Mac (windows seems to have a similar cache file) it should be in the User Library/ caches/ Adobe/ Bridge CSxx and inhere is a plug in and a folder called Cache, containing several folders.
    For Bridge CC there are 4 folders, 256 (the cache files of the thumbs) 1024 (containing HQ preview cache files) data (what it says) and full (containing the 100% previews in cache)
    All files that have been fully cached (pointing to a folder the content window should show already good thumbs and the activity bar bottom left in Bridge window should not show any activity, only the number of items showing and items hidden) don't need to recache for that machine again unless you changed something to the file or added metadata.
    So once cached there should be no reason for Bridge to 'access' the file again unless access means looking for the file to check if the saved data still applies to the corresponding file on your machine, but then al files should show about the same access time because this is a very fast process on a fast machine.
    You can't deselect cache because as said Bridge is a browser showing the content of your files, and to show this it has to generate a thumb and if needed a preview. But as also said, once cached it normally should not start recaching until changes are applied.
    You have several ways to set the quality of the cache:
    There are two checker board icons top right that give you the option to set for cache. By default it is set to 'Always HQ' to have both good thumbs and a good preview when pointing to a file.
    Then you also have to option to generate 100 % previews which provides you with almost instant 100 % previews for loupe in preview panel or full screen view and click. Logically this needs more time and generates a lot of big cache files, all depending on the files you start with and the size of your monitor.
    Finally you have the option to use embedded previews only. This is a very quick method but provides low quality thumbs (black border around it) and when clicking on a thumb it first needs to generate a HQ preview that then will take time.
    In Bridge prefs advanced there is the option to create also monitor sized previews which should provide you with good quality full screen when using space bar in Bridge to preview in full screen.
    This setting also creates a bit larger cache files in the 1024 folder depending on the size of your monitor (logical).
    And if you want to apply a search using the find command you also have to include non indexed files to search in all folders, including the not before cached files.
    Like first time cache this first indexing takes some extra time but should only need to be done once and then be persistent until you add new files or folders that have not been cached or indexed before.
    Until so far the theory for a stand alone. If you have the files stored in a Network and other stations have access and have different cache settings or monitor size settings there might be some other things going on, or someone else has changed the file on their station and then when you select that folder Bridge needs to recache the changes.
    Hopefully this makes some sense for you?

Maybe you are looking for

  • Installing Windows XP from USB - no system installed already

    Hi all, I am a newbie here, so please bear with me. I recently purchased a Lenovo x121e ThinkPad. It did NOT come with an operating system on it. I thought it would be a pretty simple job to install Windows XP from a USB Flash Drive. Apparently not!

  • Paying for Ringtones?

    This has to be a mistake. I paid $200 for this Iphone 3GS and now I pay $25 a month for service. So now I have to pay for Ringtones??? Why. Is this greed or what??

  • 1% new Excise duty

    I have to add one new excise duty on item level on sales order i.e. ZSED (1% of NSV). The issue is that if i dont attach access sequence with ZSED, ZSED displays on sales order but if i attach acces sequence with it then ZSED does not display on sale

  • IPod Nano continuously Syncs

    New Nano (Christmas present).  Has been working fine (and still does) but now seems to display that is continuously is syncing with iTunes when ever it is plugged in.  I plug it into my computer.  iTunes is open.  The Nano is recognized and then it b

  • IWeb gives error message and won't publish

    I have two sites on iWeb. I went to publish both of them and the first one published fine. The second ones gives me the following error after going through the entire publishing process: An error occurred while publishing file "/private/var/folders/j