To delete perticular file (*.enc) from folder inside folder  n  so On...

i want to delete file (*.enc) from following structure.
d:/ test / myfile.enc
d:/ test / ex / myfile.enc
d:/ test / ex / eng /myfile.enc
d:/ test / ex / Anymyfile.enc
how to delete it from such type of structure only (*.enc) file OK
reply me
not who earlier reply me ( he must be shame to answer)

> not who earlier reply me ( he must be shame to answer)
What kind of remark is this?
The one who replied to you, posted a link to a thread similar to your question, there is even some code in that thread how to recursively do what you want to do. In the other thread he told you not to cross-post your question.

Similar Messages

  • How do i delete perticular type file(*.enc) from folder/File recursively ?

    i know File class and File[ ] of java
    but can u give me code to delete (*.enc) file from folder inside folder. i mean recursively.
    i used :
    if(encFile.isDirectory())
    File []fileList = (new File(encF)).listFiles();
    //File[] fileList2= (new File(encF)).listFiles();
    System.out.println("Your Directory is ="+encF);
    for(int i=0; i < fileList.length; i++)
    //put code here
    if( (fileList.toString().endsWith(".enc")))
    fileList[i].delete();
    System.out.println("encFile:"+fileList[i]+" deleted.");
    if(fileList[i].isDirectory())
    if( (fileList[i].toString().endsWith(".enc")))
    {         fileList[i].delete();
    System.out.println("encFile:"+ fileList[i]+ "deleted");
    System.gc();
    }//for
    }//check dir if

    http://forum.java.sun.com/thread.jspa?forumID=31&threadID=563148
    Next time, search for yourself.

  • Java files from a EAR file and from inner (inside EAR)

    I want to read all Java files from a EAR file and from inner (inside EAR) EAR or WAR file with out unpacking.
    suppose "Demo.ear" contaions the following files:
    abc.java
    programs / a.java
    programs / b.java
    src / index.java
    src / com / myFolder / main.java
    src.war
    and suppose "src.war" again contains some java files inside differenet folders.
    The main problem is that i can read all java files from "Demo.ear" but unable to reading from "src.war" b'coz my program is using JarFile class constructor which needs a archive file path, So only top level archive having the path but not the inner archives.
    So, pls help me out to this problems
    Thanks in advance

    Firstly Sorry to writing long letter. but i was unable to express my problem.
    see my code==============================
    JarFile jarFile = new JarFile("Demo.ear");
    Enumeration e=jarFile.entries();
    while (e.hasMoreElements())
    JarEntry entry=(JarEntry)e.nextElement();
    if (entry.getName().endsWith(".war"))
    // Then what Next to do...........
    ===========================================
    you have mentioned "theFile" , What is this?...............
    InputStream in = theFile.getInputStream(theEntryOfTheWAR);
    This line is not a compatible type casting in Java..........
    ZipOutputStream theWar = new ZipInputStream(in);

  • Launch daemon's, I have deleted the files in the folder and can not log in to recover the files , safe book didn't help can you ?

    Launch daemon's, I have deleted the files in the folder and can not log in to recover the files , safe book didn't help can you ?

    - Can you use Target Disk Mode : How to use and troubleshoot FireWire target disk mode  to assist to recover the files.
    - Need another Mac and a Firewire cable
    Cheers

  • HT1526 deleting selected files (only) from trash

    How do I securely and permanently delete selected files from the trash bin?

    You shouldn't put files you may want to keep in the Trash.  It's not a storage location.  Make a separate folder on the Desktop.  I used to have one that I named Waste Basket (I even gave it a special icon).  I put files there when I wasn't 100% sure about deleting it, but I wanted to get it out of the way.
    But to answer your question, there is no way selectively delete what is in the Trash.  You'd have to drag the items you want to keep out of the Trash, empty the Trash, and drag them back into the Trash.

  • Can I delete song file directly from iTunes?

    Currently if I want to delete any songs from my HDD I have to:
    ○ Right click th song in iTunes .
    ○ Click "Show in Windows Eplorer".
    ○ Delete the file.
    ○ Delete song in iTunes library.
    ◙ And repeat it all if there are more than one song I need to delete.
    Is there any way to delete files from iTunes directly?

    Stuwawah wrote:
    You can but in order to be able to do it directly from iTunes, the song/songs need to be store in the "iTunes folder" in your media directory or the Default folder to chose Under:
    ** Preferences -> Advanced -> Itunes Media folder location
    That is not accurate.
    I do not keep my media in the iTunes folder because I personally cannot stand the way iTunes manages the folders.
    I am able to delete media from my computer via iTunes by simply selecting delete and then selecting the option to let iTunes remove it from the drive.

  • Retreiving the file names from directory inside another directory from application server

    Hi,
    I had a problem in retreiving the file names from a directory inside another directory.
    I tried using the FM's  SUBST_GET_FILE_LIST, RZL_READ_DIR_LOCAL and EPS_GET_DIRECTORY_LISTING
    But here I am getting only one directory details.
    Actually my file is located a directory inside one more directory and one more directory and inside the files are located.
    i.e total 3 directories inside the 3rd one my files are there.
    I need to read the latest file name in the directory.
    So that i can do some manipulation after getting the file name.
    Is there option like OPEN DATASET , READ DATASET and CLOSE DATASET?
    Can anyone please let me know How can i acheive this one.
    Regards
    Ram

    Hi Ram,
        Following thread can be helpful for you, were it shows in the tables structure rsfillst a field RSFILLST-TYPE whether its a directory or file..........
    http://scn.sap.com/thread/865272
    thanks and regards,
    narayan

  • I deleted hiding file on desktop.Folder name problem.

    Few minute ago.I deleted hiding file on desktop.My system language is Chinese.
    Now the folder “desktop” on User changed English.
    What can I return to Chinese language?
    Lion 10.7.3

    How to do this?
    What about the file I deleted ?It can return?
    I find another problem.System Preferences>Language &Text>Language,language list change error codes?
    Help me,please!

  • TS3704 Trying to delete I Tunes because of missing MSVCR80.dll followed instructions from Apple to delete - Apple Mobile Device support keeps coming up its being used I have gone to program files deleted what I can from folder but left with 3 files

    I have been getting the MSVCR80.dll missing message.
    Been on the Apple site and following instruction.
    Going down the list has instructed I have Deleted I Tunes.
    Deleted Apple Software Update
    But when I try to delete Apple Mobile device it wouldn't delete so went into program files has the instructions say by going to Program Files\common Files\Apple\Apple Mobile Device Support Folder.
    It still wouldn't delete saying it was being used. 
    I opened the file and highlighted all the folders and pressed delete, most of them have disapeared into my recycle bin but the folder still holds AppleMobileService, AppleMobileDeviceService_main.dll and MobileDevice.dll. 
    Message when I right click the first file is AppleMobileService I am told this action can't be completed because file is open in Apple Mobile Device. Close and Try again. 
    When I click the next file AppleMobileDeviceService_main dll it says  It comes up with This action cannot be completed and File description Apple Mobile Device Service. Company Apple Inc. File Version 17.323.0.9 Date Created 7/9/2013. Try again...... and finally  MobileDevice.dll come up with same message but file version 710.0.0.4 Date Created 7/9/2013 Size 902KB Both say Try Again but the same thing just recurred.
    I have left my lap top on hoping that I a swift reply.
    I am certainly no computer wizard and simply trying to follow the instructions to get rid of the box which keep coming up everytime I switch the lap top on saying APS Daemon.exe-System Error. The program can't start because MSVCR80.dll is missing from your computer. Try reinstalling the program to fix this problem.  I had looked at the internet and there appears to be warnings not to click on the button.
    I have had an apdate from Apple for the I Tunes but it wouldn't update. I thought that may have sorted it so whilst I had a few hours I thought I would go through the process that is advised on Apple's website. 
    I hope I have not ruined my computer. I haven't even tried deleting Bonjour or Apple Application Support (I Tunes 9 or later) has these are supposed to come after the step I am on.
    Please HELP!!!!!

    Sorry I missed your post. Anyone else with the same issue should find useful resources at Troubleshooting issues with iTunes for Windows updates.
    tt2

  • How to delete Icon file in Safari folder?

    In Safari v2.0.4 the Icon file contains the Favicons. In v3.0.4 WebepageIcons.db contains the Favicons. My Safari 3.0.4 folder still has an alias Icon file. SafariSpeed will not remove the Favicons. I assume this is because of the alias Icon. If I trash the Icon, it regenerates on startup. A search does not find the original Icon. Using Force Delete File - Home/Library/Safari, the Icon file is grey. I need to manually trash WebepageIcon.db to remove the Favicons. No reply from Scifience to my e-mails for help. How can I delete the Icon?

    The Icons file has been locked, previously, without any help. When it is locked, I can not open the SafariSpeed preferences to select "delete Favicons". You suggest locking the WebpageIcons.db file, as well, but this does not resolve the problem in my hands. Have I made an incorrect move here?

  • All media files lost from folder while editing! Entire movie now gone HELP!

    After a dozen painstaking hours of editing a movie (iMovie 3.0.3) on my iMac G4 with OS 10.2.8, all of my media files mysteriously vanished from the media folder. The trash is empty both in iMovie and in my desktop trash. Files nowhere to be found. They were there one second... the next, gone!
    I was undoing a transition deletion at the time and may have hit command-x instead of command-z or some other crazy key combo. I have no idea how this happened of what happened for that matter. I need these files! Can they be recovered somehow? My available disc space has changed to about 5GB more. I quit out of iMovie hoping to not save these changes to no avail.
    Is there a utility that can recover lost files? I'm not too knowledgable in this department. YIKES! Has this happened before to anyone?

    I'm afraid the news isn't good, truegrit.
    Older versions of iMovie had a bug that could delete all the clips in the Media folder, causing the loss of everything. That may have happened to your project.
    If it helps, it's probably not something you did. That version of iMovie did it on its own. It can follow emptying the iMovie trash.
    Emptying the iMovie trash could cause lots of different problems; that was the worst of several. Fortunately, iMovie 5 and iMovie 6 do not have this bug.
    Karl

  • Delete data file groups from a database

    Hello,
    My bi table partitioned by a column and each partition has data file and filegroup.
    I want delete oldest partitions and data files from the server.
    How to do it?

    Hi Tugsuu224,
    According to your description, you want to delete oldest partition from the table, remove the data files and filegroups.
    To achieve this requirement, please refer to the following blog post by Patrick Keisler:
    http://www.patrickkeisler.com/2013/01/how-to-remove-undo-table-partitioning.html
    Thanks,
    Katherine Xiong
    Katherine Xiong
    TechNet Community Support

  • Copy file ( .fmb ) from folder to folder

    What is the command to use from Oracle Forms or from the database to copy a file from one folder to another?
    An example for link will be greatly appreciated

    Hi,
    Remember, the HOST call runs the OS command. So, you may need to use appropriate OS commands in the call. In windows, you may use "copy" but, if your App Server is of Unix flavor, you may want to use "cp".
    Also, if you are planning to do it in the client machine, you need to fist identify the client OS and execute the appropriate command depending on it.
    -Arun

  • Delete Aged Files & Folders from Subfolders

    Hi,
    I have the following script to delete files and folders older than 7 days. It work but I need to be able to go through subfolders as well:
    Set objFSO = CreateObject("Scripting.FileSystemObject")
    Set objFolder = objFSO.GetFolder("C:\FTPRoot_External")
    For Each file in objFolder.Files
    If DateDiff("d", file.DateLastModified, Now) > 7 Then
    objFSO.DeleteFile(file)
    End If
    Next
    For Each folder in objFolder.SubFolders
    If DateDiff("d", file.DateLastModified, Now) > 7 Then
    objFSO.DeleteFolder(folder)
    End If
    Next
    Any suggestions?
    Thanks.

    Here is an example I coded sometime ago with a recursive sub. You can modify this for your needs:
    Option
    Explicit
    Dim strFolder, objFSO, objFOlder
    ' Specify main folder.
    strFolder = "c:\scripts"
    ' Retrieve folder object.
    Set objFSO = CreateObject("Scripting.FileSystemObject")
    Set objFolder = objFSO.GetFolder(strFolder)
    ' Enumerate files.
    Call GetFiles(objFolder)
    Sub GetFiles(ByVal objParent)
        ' Enumerate files in folder.
        Dim objFile, objChild
        For Each objFile
    In objParent.Files
            Wscript.Echo objFile.Path &
    "," & objFile.DateLastModified
        Next
        ' Recurse through nested folders.
        For Each objChild
    In objParent.SubFolders
            Call GetFiles(objChild)
        Next
    End Sub
    Richard Mueller - MVP Directory Services

  • Deleted .pkg files in reciepts folder

    I did a dumb thing I was trying to delete some unwanted files and got rid of all the pkg files in my Recipets folder. I now can't find my iPhotos or iTunes files..but I'm wondering if that's because I also renamed my home folder...I copied everything over (and my Mac is working fine) but now I don't know what to do about my missing pkg, photos and music.
    I tried to repair my permissions but I got an error "No Valid packages" since I those are missing
    So are the iTunes and iPhoto files still on my computer? I did a search and they did not come up.
    If I fix the pkg problem and repair my permissions will I be able to recover my missing files
    Any ideas?

    Yup, that wasn't the brightest.
    The reason you couldn't find your photos and music is because you renamed the Home Folder - a really big no-no. Have a read of this:
    http://docs.info.apple.com/article.html?artnum=107854
    As to the Receipts Folder. This is how Software Update tracks what apps are installed. It also tracks various parts of how the apps interact with the OS - including repairing permissions. When you repair permissions the Mac compares the permissions on System Files against a database, contained in... you guessed it, a pkg file in the receipts folder.
    Here's a tip. You may have unwanted files, but assume unless you know otherwise that the Mac doesn't.
    You need to re-install the OS. But first, sort out the Home Folder, then do an Archive and Install to preserve your setting. But Software update will still report that your apps need updating.
    Regards
    TD
    Message was edited by: Terence Devlin

Maybe you are looking for

  • Deleting list for sale order

    Hi Guru’s How can get the deleting list for sale order?    Useful answer duly rewarded back. Regards, Devendra

  • Automate creating single PDF file from multiple documents

    Hi everyone ! I am testing the Adobe XI version, especially because I need it for a very specific function.I haven't found it yet, maybe you guys can help ? Basically, I need to make a user friendly system, that in one click will create a single PDF

  • Mi424 wr rev I keeps disconnecting slingbox 350 after 48-55 hrs

    mi424 wr rev I keeps disconnecting slingbox 350 after 48-55 hrs. If I unplug the ethernet cable from the LAN port on the router it will work again only temporarily. I can't access the slingbox from outside the LAN. I just says "connecting" and is bei

  • App Store: Not enough disk space

    I'm trying to purchace a game on the App Store that is 10.47 GB and when I click buy I get an error message that I can't because there is not enough disk space. How is this possible if I have 20+ GB free on my hard drive?

  • Importing Frame files without creating RH folders

    Hiya. I'm importing Frame 7 files into RH 7. When I import the files, RoboHelp creates folders for each chapter in the Frame book. When I reimport, it creates MORE folders and nests the older folders in them. How do I turn this off? I want to import