How to set/get the archive file attribute?

I am programing a (freeware!) ftp client and need to know, how to set/get the archive attribute of a local file. I was searching through whole the i-net - nothing at all!
please help me!!

Hi,
Since not all operating systems support the archive attribute, this ain't included in the JDK.
If you're using Microsoft Foundation Classes for Java, then you can use File.getAttributes(String path) and check whether the result equals FileAttribute.ARCHIVE.
For setting the attribute, you can use
File.setAttributes(String path, FileAttribute.ARCHIVE)
Of course this is all Microsoft-specific stuff.
Hope this helps,
Kurt.

Similar Messages

  • Exporting photos for UHDTV or Native 4K TV, what are the best settings ? (File: Quality File: Color Space, Image Sizing and resolution)   Or in other words; How can I get the smallest files but keep good quality for display on new UHDTV

    Exporting photos for UHDTV or Native 4K TV, what are the best settings ? (File: Quality File: Color Space, Image Sizing and resolution)   Or in other words; How can I get the smallest files but keep good quality for display on new UHDTV

    You're welcome, and thank you for the reply.
    2) Yesterday I made the subclips with the In-Out Points and Command-U, the benefit is that I've seen the clip before naming it. Now I'm using markers, it's benefit is that I can write comment and (the later) clip name at once, the drawback is that I have to view to the next shot's beginning before knowing what the shot contains.
    But now I found out that I can reconnect my clips independently to the format I converted the master clip to. I reconnected the media to the original AVI file and it worked, too! The more I work with, the more I'm sold on it... - although it doesn't seem to be able to read and use the date information within the DV AVI.
    1) Ok, I tried something similar within FCE. Just worked, but the file size still remains. Which codec settings should I use? Is the export to DV in MOV with a quality of 75% acceptable for both file size and quality? Or would be encoding as H.264 with best quality an option for archiving, knowing that I have to convert it back to DV if I (maybe) wan't to use it for editing later? Or anything else?
    Thank's in advance again,
    André

  • When I move a RAW file from IPhoto to my desktop or Photoshop it changes to a jpeg and reduces in size. How can I get the Raw file across?

    When I move a RAW file from IPhoto on my macbook pro to desktop or Photoshop it changes to a jpeg and reduces in size. How can I get the Raw file to move across?

    I create separate folders based on the year and then the actual date of when I take images. You can make those folders anywhere on any hard drive that is connected to your Mac whether internal or external. I also use the Photoshop Photo Downloader that is included with Photoshop/Bridge and it will create the date folder so all I do is create a Year folder.
    Open Bridge or click on the Bridge icon in PS and in the File menu item in Bridge select "Get photos from Camera". It can be a camera connected to your Mac or a memory card from a camera. A window will open and you then select the camera or memory card. Set the location they will be downloaded to, just the folder and you can Browse to a folder that you created, then in the "Create  Subfolders drop down select what date stamp you want to use or or custom name or not to create subfolders at all.
    I've never cared for iPhoto one bit. I tried it but found it way to restrictive. It likes to have full control over how you interact with your images.

  • My Photoshop Elements does not start any more. It gives response "Photoshop elements cannot start or continue because of missing file(s). Please reinstall." How do I get the installing file again (I bought it via internet the first time december 2013?)

    My Photoshop Elements does not start any more. It gives response "Photoshop elements cannot start or continue because of missing file(s). Please reinstall." How do I get the installing file again (I bought it from Adobe via internet the first time december 2013?)

    Did you download the Basic/Free version?
    I also thought the Trial period was as long as you needed!?
    What is your Warranty and Return Policy?
    You get to use VueScan for as long as you want before you buy it, so we recommend you test it before you buy it to make sure it meets your needs.
    All sales are final and there are no refunds.
    Isn't this a bit harsh? Naah I actually prefer to solve problems, and if I offer refunds, people give up too easily. If I can't solve your problem after you send a few Problem Reports (see above), I'm happy to give a refund.
    http://www.hamrick.com/sup.html#q

  • How can I get the lesson files for Aperture 3.2.4?

    How can I get the lesson files for Aperture 3.2.4?

    They are only available on the original Installer dvd with the boxed retail version.
    But you can easily use your own photos to try out the tutorial videos. The videos are linked on the Aperture Support page.

  • I downloaded microsoft office to my MBP and my question is how do i get the right file or operating system to open it and so that i can use it?

    i downloaded microsoft office to my MBP and my question is how do i get the right file or operating system to open it and so that i can use it?

    Welcome to the Apple Support Communities
    There are two Office versions: Office for Windows, and Office for Mac.
    I suspect that you have downloaded Office for Windows, and you can use it if you install Windows, but a cheaper and easiest way to use Office is to use Office for Mac, so you won't have to install Windows. See > http://www.microsoft.com/mac

  • Teststand 1.03 - How can I get the sequence file path into an expression?

    The sequence file will be located at different locations on different computers. I need the base address of the sequence file to get to the correct limits file. How can I get the sequence file path into a string-local expression.
    Thanks

    As Ray described, the FindFile expression function and TS API method will seach all TS search directories and return to you the path of your file, assuming the file is located in the search directories.
    If you just want the path of a TS file that you have a reference to then there is a faster, easier method. You can use the Path property of the PropertyObjectFile class. In the attached example I use an AcitiveX Automation adapter step to call Path on the property RunState.SequenceFile. This returns the path to the current executing sequence file. Note that if you have not yet saved the sequence file then the path will be empty. In a subsequence step I strip off the file name leaving the root path of the file.
    Attachments:
    GetSeqFilePath.seq ‏22 KB

  • In OSB file protocol, trying to get the archived file name in proxy service

    Hi,
      I have a requirement that i need to process the archived file of file protocol,  with java callout in proxy service.
    I am able to get the file name which is reading with 'tokenize($inbound/ctx:transport/ctx:request/tp:headers/file:fileName,"\\")[last()]' , but this file is getting archived to archive folder. I want to pass the archive file name as input to the Java callout.
    Please let me know if  this can achieve in OSB proxy or any other options.
    Note : I am reading a xlsx file in the file protocol

    If you're using pass by reference option in the file transport, I guess the archive filename can be obtained from $body/ctx:binary-content/@ref. Try it out.

  • Saved download for Camera Raw update. still can't open Raw pic in CS5. How do I get the downloaded files to work so I can open Raw images? thanks, Artist Ray

    Bought new camera to work with Raw images in CS5 but file would not open so I downloaded latest update. It only allowed me to save in a file ( could have OPENED instead of saving so I don't know those results). How do I get the new download to work in CS5?
    Thanks for your help, Artist Ray

    Bought new camera
    Which camera make and model?
    Supported cameras
    Camera Raw plug-in | Supported cameras
    Compatible Adobe applications
    Camera Raw-compatible Adobe applications
    Why doesn’t my version of Photoshop or Lightroom support my camera?

  • How can i get the trace file

    Hi,
    I wanted to check the trace file to make sure that there is no login attempts happend through the forms with wrong username and password.
    how can i enable the trace file , where i have to write the commands and where i can see the trace file.
    I'm using oracle forms 6i
    could anybody help me.
    thanks
    Bcj

    This link is all about forms 9i, i'm working on forms 6i. but i have tried with following values
    TRACE_LEVEL_CLIENT=16
    TRACE_UNIQUE_CLIENT=TRUE
    TRACE_FILE_CLIENT=Test
    TRACE_DIRECTORY_CLIENT=c:\orant\net80\trace
    in sqlnet.ora file and it created a trace file whenever it connected to database through the on_logon trigger.
    if the username or password is invalid then the validations raise the form_trigger_failure exception. so there was no trace file. so i was unable to get the trace file to see the invalid login attempts.
    Thanks

  • How do i get the cdg file for karaoke purchases

    hi i was wondering i have purchased some karaoke albums using itunes and was wondering how i get the cdg files that goes with them in order to use them for karaoke??

    voodoo2k10 wrote:
    even when you purchase the full cd from a karaoke company eg zoom avid sunfly etc ?
    Since you say "purchased some karaoke albums using itunes," I thought your question was about the iTunes Store. If you are asking about commercial Karaoke CDs, you cannot use them in iTunes.
    so they are not cdg just mp3 backing tracks ??
    The ones from the iTunes Store are instrumental backing tracks in AAC format.
    Message was edited by: ed2345

  • How to set/get the values thru Wedbynpro coding for User mapping fields

    Hi All
    In system object we have the user mapping fields like District,city,plant,Salesmanager.
    now we want to set/get the values of these usermapping fields of system object thru webdynpro coding...
    if anybody have sample codes of the same then it would be great help to me
    Thanks in advance
    Thanks
    Trisha Rani

    Hi Kavitha
    Thanks for your reply
    My requirement is exactly as follows.
    1) i have created one portal system object in system administration and also i created usermapping fields in the system object from the usermanagement  in system object.
    i created the user mapping fields like Plant,SalesManager,District etc.
    i also created the system alias name for the same system object
    2)  Now i came to persoanlize link and mapped the system object to the portal user.
    while mapping to the system object we need to enter Mapping userId, Password , once we enter these values and we can also enter the values of usermapping fields which we defined while creating the system object ( for example District,Salesmanager,Plant etc)
    once we enter all the values and click on save then these usermapping  values to be mapped to the portal user.
    3) Now my requirement is , i  want to control the usermapping field values thru webdynpro coding for setting/getting the values.
    I need sample code of the same.
    Please let me know if u need more details on the same.
    Thanks
    Trisha Rani

  • I lost all of my document saved in my previous adobe after I upgrade the itunes, how can I get the lost file?

    I Lost of my document saved in my previous adobe after upgraded itunes, can I get the lost file again?

    Would you provide more information so that we can troubleshoot the problem?
    Are you saying that your PDF documents on your iPad/iPhones are lost because you updated Apple iTunes (not Adobe Reader)?  Do you see anything in the Documents or Recents section of the Adobe Reader home screen?

  • How can I get the lib files which supported jsf?

    In one book , That introduce me to get the lib files from a jsf folder ,after you install the jwsdk1.3 ,now ,I installed the 1.5,but I cann't find this jsf folder.where I can get these lib files ? Thanks very much.

    Try data rescue or some other program. However, before proceeding turn off TM and avoid that muck up the next time you connect. AFAIK, however, it shouldn't have happened without a dialog box popping up allowing you to not use it for TM.
    See Pondini's TM FAQs for more information..

  • Online Consistent brbackup - How does SAP lock the archive files?

    With an Oracle online consistent brbacup, i believe that SAP locks the archive log files so they are not deleted during the backup.
    How do they do this?
    If a backup crashes how do I unlock these locks?

    Here is the statement (from the netbackup trace)  that caused brachive to stop.
    Set file /oracle/BP1/oraarch/BP1arch1_207989.dbf to QUIESCE status.
    Here is relevenmat part of the NetBAckup/backint log...
    5:21:36.691 [11248] <4> adjustObjectStatus: File </oracle/BP1/oraarch/BP1arch1_207989.dbf> in VxBSA_INPROGRESS status. No ch
    ange of status needed.
    15:21:36.691 [11248] <4> adjustObjectStatus: Done.
    15:21:36.691 [11248] <4> VxBSAWaitForFileListStatus: INF - entering WaitForFileListStatus.
    15:21:36.691 [11248] <4> bsa_handle_std_backup: INF - entering bsa_handle_std_backup.
    15:21:36.691 [11248] <4> bsa_comm_w_bkar: INF - entering bsa_comm_w_bkar.
    15:21:38.714 [11248] <4> bsa_comm_w_bkar: Recieved bpbkar message: #END /oracle/BP1/oraarch/BP1arch1_207989.dbf
    15:21:38.714 [11248] <4> bsa_comm_w_bkar: Comparing physical file  path: /oracle/BP1/oraarch/BP1arch1_207989.dbf
    15:21:38.714 [11248] <4> bsa_comm_w_bkar: to file from bpbkar message:   /oracle/BP1/oraarch/BP1arch1_207989.dbf
    15:21:38.714 [11248] <4> bsa_comm_w_bkar: File paths matched.
    15:21:38.714 [11248] <4> bsa_comm_w_bkar: Set file /oracle/BP1/oraarch/BP1arch1_207989.dbf to VxBSA_UNQUIESCE status.
    15:21:38.714 [11248] <4> bsa_comm_w_bkar: Recieved bpbkar message: #BEGIN /oracle/BP1/oraarch/BP1arch1_207989.dbf
    15:21:38.714 [11248] <4> bsa_comm_w_bkar: Comparing physical file  path: /oracle/BP1/oraarch/BP1arch1_207989.dbf
    15:21:38.714 [11248] <4> bsa_comm_w_bkar: to file from bpbkar message:   /oracle/BP1/oraarch/BP1arch1_207989.dbf
    15:21:38.714 [11248] <4> bsa_comm_w_bkar: File paths matched.
    15:21:38.714 [11248] <4> bsa_comm_w_bkar: Set file /oracle/BP1/oraarch/BP1arch1_207989.dbf to QUIESCE status.
    15:21:38.714 [11248] <4> bsa_comm_w_bkar: File /oracle/BP1/oraarch/BP1arch1_207989.dbf not in VxBSA_NOTREADY state.
    15:21:38.714 [11248] <16> bsa_comm_w_bkar: Can't change state.
    15:21:38.714 [11248] <4> do_file_backup: The sequence of calls is incorrect.
    15:21:38.715 [11248] <4> do_backup: Exit with status: <2>.
    15:21:38.715 [11248] <4> /usr/sap/BP1/SYS/exe/run/backint 6.0: **************************************************************

Maybe you are looking for

  • Can't access my SPA2102 when connected to my BEFSR41 router

    Hi All, I have a Linksys EtherFast Cable/DSL router #BEFSR41 to which I have two computers, one printer, and one Linksys PAP2T-NA connected.  I purchased a SPA2102-NA because I need two additional phone lines, but I had no more router ports.  I was t

  • How can i use modal analysis in labview and Sound and Vibration toolset in my structural studies.

    I am working on structural analysis of buildings during earthqauke.I ahve NI 4472, labView, sound and vibration toolset.Now i also want to carry out Modal Analysis. Where can i find thisin NI software.

  • Authorisation - Inputschedule

    Hello, Have a specific issue with accessing the input schedules with in our user group one can access the worksheet with in the template and one cannot. The access rights / authorisation has been given at the same level, I have deleted and recreated

  • Analog waveforms in Field Point

    Hi all, I have a Field Point 2000 which reads a load cell. I can display the readings in LabView using a waveform graph, but it seems the results are only coming out as a digital output, i.e., as a square wave. Is there any way of reding this output

  • TS4212 When in July 2012 will Mac OS X 10.7 be available?????

    Hi everyone: I'm trying to fix my Mac OS X 10.6.8 which suddenly became unresponsive last week when opening Itunes, Safari, Adobe PDF, Photo booth etc.   The error message says to "upgrade the latest software applications and Mac OS X"   I determined