Batch files to remove certain files over a date

Hello,I'm trying to create a batch file that will copy certain files from a directory made up of several sub directories. I've used xcopy to move the files:xcopy /Main Directory\Sub Directory\*.pdf x\ipaddress\share
xcopy /Main Directory\Sub Directory\*.rtn x\ipaddress\share
xcopy /Main Diretcory\Sub Directory\*.prt x\ipaddress\sharepausehow would I edit this so that it only takes files that have been modified over 3 months ago?I also want to add some exclusion file extensions and sub directories, for this I added:xcopy /Main Directory\Sub Directory\\list-of-excluded-files.txtand within that .txt file ive got:\\Main Directory\Subdirectory\Folder Name
\\Main Directory\subdirectory\*.tncIs this the best way to do this? and would the exclusion command have to be the first on the list?Any help would be great, or could anyone point me in the...
This topic first appeared in the Spiceworks Community

WSUS is filling up all my hard disk partition which is 200gbAlready tried running server cleanup wizard, unticking some products and classifications but still after removing files from wsus folder and restarting it it is filling up all hard disk partitionBelow are the settings I currently have :In products anad classifications I have selected:- Exchange Server 2013- office 2007- office 2013- widnows 7- windows 8.1 Dynamic update- windows 8.1- windows server 2003- windows server 2008 r2- Windows server manager - windows server update

Similar Messages

  • Update jar file by removing existing files

    hello,
    is there a way to update a jar file by removing indicated files within the jar file ?
    I saw that it is possible to update a jar file by adding files to it: jar uf jar-file input-file(s)
    I want to avoid:
    1)extracting the file
    2) remove indicated files
    3) compress again.
    thank you !

    >
    I want to avoid:
    1)extracting the file
    2) remove indicated files
    3) compress again.>If you don't want to do it, make Ant do it, and be happy (get on with your life, do fun things etc.).

  • How to TOTALLY remove certain files from a computer?

    I want to remove files that I have created on my computer. These files contain sensitive private data. Thanks

    Sorry, its not related to firefox or mozilla products.
    you can asking in any public forums.

  • Files not removed with Pacman Uninstall

    Programs can make new files etc. upon run. How do you keep track of where these files go?
    I see your user directory is where many (all?) applications store config files. But what about other possible files? Are there other places where they often are stored, except tmp and var?
    In Windows you have uninstallers to keep track of left over files. Linux doesn't have a registry, but I was thinking of other files.

    To quote the Pacman page in Archwiki:
    Note: pacman will not remove configurations that the application itself creates (for example .dot files in the home folder).
    Configurations (system wide and not current user related) are also stored in /etc. Regarding these config files, this is what the pacman page in Archwiki has to say:
    Pacman saves important configuration files when removing certain applications and names them with the extension: .pacsave. To delete these backup files use the -n option
    User specific config files, which are created in $HOME are left to the user to clean up
    PS: The ArchWiki has a wealth of information. Please read the information there.. You can post here if you still have questions

  • Ctxhx temporary files not removed?

    Hi,
    I am using Context in a 8.1.6.0.0 database.
    The documents that are indexed are primarily acrobat files.
    Now I have found many thousands of zero byte files in /var/tmp ,
    in a format like "AcroAAAZcaqXn" and all created by user oracle.
    To me this looks like temporary files not cleaned up, is this
    a known problem with ctxhx?
    regards /Curt

    To quote the Pacman page in Archwiki:
    Note: pacman will not remove configurations that the application itself creates (for example .dot files in the home folder).
    Configurations (system wide and not current user related) are also stored in /etc. Regarding these config files, this is what the pacman page in Archwiki has to say:
    Pacman saves important configuration files when removing certain applications and names them with the extension: .pacsave. To delete these backup files use the -n option
    User specific config files, which are created in $HOME are left to the user to clean up
    PS: The ArchWiki has a wealth of information. Please read the information there.. You can post here if you still have questions

  • Comparing count and combined file sizes of specific file types in target folder and subfolders

    Hi all,
    I have a script that I use to delete files with a certain file extension in a folder and its subfolders. I would like to enhance to the script by counting the total number of files and their combined size in MB that the script is deleting and use this information
    in a popup where a message will say something like "X No. Files deleted totalling YMB
    The existing script so far is:
    get-childitem  -include *.****.rfa -recurse | foreach ($_) {remove-item $_.fullname}
    Can any advise what I need to add as I'm quite new to powershell.
    Thanks

    So you do not know how to write a simple output statement.  I think you need to start here:
    http://technet.microsoft.com/en-us/scriptcenter/dd793612.aspx
    Not specifically within Powershell no, like I said I only started looking at it this week as an alternative to VBS.
    Nothing is being declared.  You need to learn the basics of PowerShell.  We cannot teach you one line at a time.
    Really? So the author of
    this website is talking rubbish is he? ("Once data is assigned to a PowerShell variable, it’s automatically declared.")
    I never asked for line-by-line hand holding nor am I someone who wants others to write the entire code for me. Examples of previous scripts that perform similar or partial operations would have been a good way to guide a new user unfamiliar to this topic.
    Additionally posting modified(incorrect) and unfinished script examples without clearly stating what your code is doing nor that additional lines of code need to be added before the script will operate as outlined in the original post is confusing to someone
    with 0 experience in this area.
    On forums I frequent that are relevant to subjects which I have good experience with, whenever I respond to a genuine query of that has an example of what they are trying to create/modify, I will happily provide a full example and/or explain what I
    have done so the OP understands exactly what I did to achieve their request in my example. For someone with your points tally (and likely a respected poster amongst your peers on this site) responding with what is essentially "RFTM Noob" I trust you can understand
    is somewhat disappointing.

  • Aperture batch file rename: remove dashes from date?

    Just wondering if it is possible to change the format of the date from YYYY-MM-DD to YYYYMMDD when you rename files as they are imported into Aperture 3? I In Aperture 3, the date format used includes dashes. I would like to have the file renamed without the dashes in the date. Is this possible?
    This question was previously asked and answered in 2010, however Aperture does not seem to have an option for this it the batch rename edit menu. Thanks

    It is not possible in the Aperture naming presets to remove the dashes or in any way change the date format.
    The reason is that it is not possible to access the individual components of the date. When you drag an Image Date or Current Date token to form the filename you can't just get the day or the month or the year which is what you would have to be able to do to remove the dashes.
    There is no technical reason this couldn't be allowed, Apple has just made the decision that it won't be allowed. You can try sending feedback to Apple requesting this, see Aperture->Provide Aperture Feedback.
    It is possible to do what you want either before you import the files or with an Applescript eitehr beforre import or within Aperture.
    For doing it before import you would basically copy the image files from the  camera card to a folder and then import from there. There are several programs that you could use to do the rename, Name Mangler has been mentioned here a few times. I've never used it so I can;t vouch for it.
    As for an in Aperture Applescript solution if you are familair with programming and/or Applescript it isn't to difficult to do but would be easier with some prior knowledge.
    regards

  • How do I make a batch file if the .class file uses a foreign package?

    I am trying to make an MS-DOS batch file using the bytecode file from the Java source file, called AddFields.java. This program uses the package BreezySwing; which is not standard with the JDK. I had to download it seperately. I will come back to this batch file later.
    But first, in order to prove the concept, I created a Java file called Soap.java in JCreator. It is a very simple GUI program that uses the javax.swing package; which does come with the JDK. The JDK is currently stored in the following directory: C:\Program Files\Java\jdk1.6.0_07. I have the PATH environment variable set to the 'bin' folder of the JDK. I believe that it is important that this variable stay this way because C:\Program Files\Java\jdk1.6.0_07\bin is where the file 'java.exe' and 'javac.exe' are stored. Here is my batch file so far for Soap:
    @echo off
    cd \acorn
    set path=C:\Program Files\Java\jdk1.6.0_07\bin
    set classpath=.
    java Soap
    pause
    Before I ran this file, I compiled Soap.java in my IDE and then ran it successfully. Then I moved the .class file to the directory C:\acorn. I put NOTHING ELSE in this folder. then I told the computer where to find the file 'java.exe' which I know is needed for execution of the .class file. I put the above text in Notepad and then saved it as Soap.bat onto my desktop. When I double click on it, the command prompt comes up in a little green box for a few seconds, and then the GUI opens and says "It Works!". Now that I know the concept of batch files, I tried creating another one that used the BreezySwing package.
    After I installed my JDK, I installed BreezySwing and TerminalIO which are two foreign packages that make building code much easier. I downloaded the .zip file from Lambert and Osborne called BreezySwingAndTerminalIO.zip. I extracted the files to the 'bin' folder of my JDK. Once I did this, and set the PATH environment variable to the 'bin' folder of my JDK, all BreezySwing and TerminalIO programs that I made worked. Now I wanted to make a batch file from the program AddFields.java. It is a GUI program that imports two packages, the traditional GUI javax.swing package and the foreign package BreezySwing. The user enters two numbers in two DoubleField objects and then selects one of four buttons; one for each arithmetic operation (add, subtract, multiply, or divide). Then the program displays the solution in a third DoubleField object. This program both compiles and runs successfully in JCreator. So, next I moved the .class file from the MyProjects folder that JCreator uses to C:\acorn. I put nothing else in this folder. The file Soap.class was still in there, but I did not think it would matter. Then I created the batch file:
    @echo off
    cd \acorn
    set path=C:\Program Files\Java\jdk1.6.0_07\bin
    set classpath=.
    java AddFields
    pause
    As you can see, it is exactly the same as the one for Soap. I made this file in Notepad and called it AddFields.bat. Upon double clicking on the file, I got this error message from command prompt:
    Exception in thread "main" java.lang.NoClassDefFoundError: BreezySwing/GBFrame
    at java.lang.ClassLoader.defineClass1(Native Method)
    at java.lang.ClassLoader.defineClass(ClassLoader.java:620)
    at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:12
    4)
    at java.net.URLClassLoader.defineClass(URLClassLoader.java:260)
    at java.net.URLClassLoader.access$000(URLClassLoader.java:56)
    at java.net.URLClassLoader$1.run(URLClassLoader.java:195)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
    at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:276)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
    at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)
    Caused by: java.lang.ClassNotFoundException: BreezySwing.GBFrame
    at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
    at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:276)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
    at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)
    ... 12 more
    Press any key to continue . . .
    I know that most of this makes no sense; but that it only means that it cannot find the class BreezySwing or GBFrame (which AddFields extends). Notice, however that it does not give an error for javax.swing. If I change the "set path..." command to anything other than the 'bin' folder of my JDK, I get this error:
    'java' is not recognized as an internal or external command,
    operable program or batch file.
    Press any key to continue . . .
    I know this means that the computer cannot find the file 'java.exe' which I believe holds all of the java.x.y.z style packages (native packages); but not BreezySwing or any other foreign packages. Remember, I do not get this error for any of the native Java packages. I decided to compare the java.x.y.z packages with BreezySwing:
    I see that all of the native packages are not actually visible in the JDK's bin folder. I think that they are all stored in one of the .exe files in there because there are no .class files in the JDK's bin folder.
    However, BreezySwing is different, there is no such file called "BreezySwing.exe"; there are just about 20 .class files all with names like "GBFrame.class", and "GBActionListener.class". As a last effort, I moved all of these .class files directly into the bin folder (they were originally in a seperate folder called BreezySwingAndTerminalIO). This did nothing; even with all of the files in the same folder as java.exe.
    So my question is: What do I need to do to get the BreezySwing package recognized on my computer? Is there possibly a download for a file called "BreezySwing.exe" somewhere that would be similar to "java.exe" and contain all of the BreezySwing packages?

    There is a lot of detail in your posts. I won't properly quote everything you put (too laborious). Instead I'll just put your words inside quotes (").
    "..there are some things about the interface that I do not like."
    Like +what?+ This is not a help desk, and I would appreciate you participating in this discussion by providing details of what it is about the 'interface' of webstart that you 'do not like'. They are probably misunderstandings on your part.
    "Some of the .jar files I made were so dangerously corrupt, that I had to restart my computer before I could delete them."
    Corrupt?! I have never once had the Java tools produce a corrupt Jar. OTOH, the 'cannot delete' problem might relate to the JRE gaining a file lock on the archive at run-time. If the file lock persisted after ending the app., it suggests that the JRE was not properly shut down. This is a bug in the code and should be fixed. Deploying as .class files will only 'hide' the problem (from casual inspection - though the Task Manager should show the orphaned 'java' process).
    "I then turned to batch files for their simple structure and portability (I managed to successfully transport a java.util containing batch file from my computer to another). This was what I did:
    - I created a folder called Task
    - Then I copied three things into this folder: 1. The file "java.exe" from my JDK. 2. The program's .class file (Count.class). and 3. The original batch file.
    - Then I moved the folder from a removable disk to the second computer's C drive (C:\Task).
    - Last, I changed the code in the batch file...:"
    That is the +funniest+ thing I've heard on the forums in the last 72 hours. You say that is easy?! Some points.
    - editing batch files is not scalable to 100+ machines, let alone 10000+.
    - The fact that Java worked on the target machine was because it was +already installed.+ Dragging the 'java.exe' onto a Windows PC which has no Java will not magically make it 'Java enabled'.
    And speaking of Java on the client machine. Webstart has in-built mechanisms to ensure that the end user has the minimum required Java version to run the app. - we can also use the [deployJava.js|http://java.sun.com/javase/6/docs/technotes/guides/jweb/deployment_advice.html#deplToolkit] on the original web page, to check for minimum Java before it puts the link to download/install the app. - if the user does not have the required Java, the script should guide them through installing it.
    Those nice features in deployJava.js are available to applets and apps. launched using webstart, but they are not available for (plain) Jar's or loose class files. So if 'ensuring the user has Java' is one of the requirements for your launch, you are barking up the wrong tree by deploying loose class files.
    Note also that if you abandon webstart, but have your app. set up to work from a Jar, the installation process would be similar to above (though it would not need a .bat file, or editing it). This basic strategy is one way that I provide [Appleteer (as a downloadable ZIP archive)|http://pscode.org/appleteer/#download]. Though I side-step your part 1 by putting the stuff into a Jar with the path Appleteer/ - when the user expands the ZIP, the parts of the app. are already in the Appleteer directory.
    Appleteer is also provided as a webstart launched application (and as an applet). Either of those are 'easier' to use than the downloadable ZIP, but I thought I would provide it in case the end user wants to save it to disk and transport the app. to a machine with no internet connection, but with Java (why they would be testing applets on a PC with no internet connection, I am not sure - but the option is there).
    "I know that .jar and .exe files are out because I always get errors and I do not like their interfaces. "
    What on earth are you talking about? Once the app. is on-screen, the end user would not be able to distinguish between
    1) A Jar launched using a manifest.
    2) A Jar launched using webstart.
    3) Loose class files.
    Your fixation on .bat files sounds much like the adage that 'If the only tool you have is a hammer, every job starts to look like a nail'.
    Get over them, will you? +Using .bat files is not a practical way to provide a Java app. to the end user+ (and launching an app. from a .bat looks quite crappy and 'second hand' to +this+ user).
    Edit 1:
    The instructions for running Appleteer as a Jar are further up the page, in the [Running Appleteer: Application|http://pscode.org/appleteer/#application] section.
    Edited by: AndrewThompson64 on May 19, 2009 12:06 PM

  • I need to do a clean install of maverick on my 2010 mbp what disk do i use and how do i move certain files from an external hard drive

    I want to do a clean install of maverick on my 2010 mbp.  I need to know what disk to use and also how i take certain files off my external hard drive and put on my computer.  When I was having problems with my airport they did a clean install and they pulled files of my time machine.   however they forgot to put the partition back in for a windows side.  Originally I had Parellels on my computer.  After my external hard drive got corrupted i called apple and they fixed the problem but didn't have me set up the time machine except for the external hard drive.  Now my only back up is from the external not from the laptop.    I am not sure how to do any of this.  I am not computer savvy...PLEASE I NEED  HELP>

    First, you need to make a backup of your MBP onto your external drive. I suggest you start by cloning your MBP drive to the external drive:
    Clone Mavericks, Lion/Mountain Lion using Restore Option of Disk Utility
    Boot to the Recovery HD:
    Restart the computer and after the chime press and hold down the COMMAND and R keys until the menu screen appears. Alternatively, restart the computer and after the chime press and hold down the OPTION key until the boot manager screen appears. Select the Recovery HD and click on the downward pointing arrow button.
         1. Select Disk Utility from the main menu then press the Continue
             button.
         2. Select the destination volume from the left side list.
         3. Click on the Restore tab in the DU main window.
         4. Select the destination volume from the left side list and drag it
             to the Destination entry field.
         5. Select the source volume from the left side list and drag it to
             the Source entry field.
         6. Double-check you got it right, then click on the Restore button.
    Destination means the external backup drive. Source means the internal startup drive.
    This clone is fully bootable and also contains a clone of your Recovery HD.
    Second, you need to do a clean install of OS X onto your MBP as follows:
    Install or Reinstall Mavericks or Mountain Lion from Scratch
    Be sure you backup your files to an external drive or second internal drive because the following procedure will remove everything from the hard drive.
    OS X Mavericks- Erase and reinstall OS X
    OS X Mountain Lion- Erase and reinstall OS X
    OS X Lion- Erase and reinstall Mac OS X
    Note: You will need an active Internet connection. I suggest using Ethernet if possible
                because it is three times faster than wireless.
    This should accomplish your goals. You will have a clean install of OS X on your MBP and a bootable clone of your old system and all your files on the external drive.

  • Cant remove a file from a directory

    hi gems...god morning...
    I am facing an issue but i cant figure it out..
    I have two users which belong to same group i.e. user1 and user2
    Now user1 owns a directory(dir1) and the permission is 775.
    Now user2 makes a FTP and places a file(fil1) into that directory(dir1) owned by user1.
    The umask setting is 027 and thats why in that directory(dir1) the file permission becomes 640.
    But when i am trying to delete that file(fil1) using user1, then it is not allowing me..
    what can i do..please suggest...thanks in advance...

    thanks for replying...
    It really looks strange and all i thought it is a code problem..
    Means the scenario i have told here is not from the direct access to the solaris box...
    It is happenning when a batch job is being called from there. The operations the batch job does is to take the file, do some processing and then remove that file. Everything is getting successful except the last step.
    But when I tried from the backend(direct access through putty) then it behaves normally.
    So i am confirm that it is a code issue. I have told the developers to check the code.

  • Re Time Machine I have an external  hard drive with files I backed up manually over the past 2 years 1TB of memory. I am finally taking the leap to use Time machine to back everything.   will I have to reformat that drive, thus wiping my previous bac

    Re Time Machine
    I have an external  hard drive with files I backed up manually over the past 2 years 1TB of memory.
    I am finally taking the leap to use Time machine to back everything.
    will I have to reformat that drive, thus wiping my previous back ups?
    can I split it the drive in two partitions?
    Also
    as I have two separate Macbook Pro's- one older than the other.
    OSX 10.68
    the other is
    OSX 10.75
    can I back them up separately?
    or even synch and merge files and folders etc? between the two?

    You CAN use a drive with files already on it to store Time Machine backups. But long term, that is not recommended. You do not need to reformat or re-partition the drive to do this. Once Time Machine Backups are established, you could remove the old files.
    But do not delete Time Machines files with the Finder -- that can cause it to lose its place and lose everything.
    With the cost of backup drives under US$100, it might be a better idea in the long run to get another drive. Best results from Time Machine is a drive about 3 times larger than the drive(s) you are backing up.

  • ITunes 11 previously imported a video file, which I loaded on to my iPod Nano, but I removed the file from the iTunes library and now it won't (re-)import the same video. Any thoughts on why not?

    iTunes 11 previously imported a video file, which I loaded on to my iPod Nano, but I removed the file from the iTunes library and now it won't (re-)import the same video.
    I'm using 2 PCs, each with video files (.MP4) on their respective hard drives, and also one external drive with other video files on that I move between the two devices.
    iTunes on one PC will (sometimes!) let me add video content from the external hard drive, which is clearly iTunes-compatible, because I can then copy it over to my iPod Nano. On the other PC, I couldn't load that same video from the external hard drive. But if I copied that same video on to the PC's internal hard drive first, then iTunes would let me import it. That was yesterday - now iTunes is refusing to load any files from the internal or external hard drive(s).
    Any thoughts or suggestions, please?

    So I tried copying the files from the external hard drive to a USB drive. I could import the video files from the USB drive!
    So then I tried importing the same files on to my PC's internal hard drive again. I could import the video files from the internal hard drive!
    So then I tried to import the very same files that failed to load on the very same PC previously. I could now import them!
    I still can't import from the external hard drive directly, though.
    I really don't think I like the process of importing things into iTunes very much... any suggestions on what's causing any of this behaviour would be very interesting.

  • How to remove preinstalled files of adobe photoshop from my mac mini so that i can install a new version of the same software.The previous version was removed using the app cleaner software.Could not continue installation bcoz of earlier files

    How to remove preinstalled files of adobe photoshop from my mac mini so that i can install a new version of the same software.The previous version was removed using the app cleaner software.Could not continue installation of the new version because of the existance of files from the previous version.plz help

    What "app cleaner software" ? I ask because installing Photoshop over a previous version has never been a problem. Perhaps your difficulty stems from another source, eg. "cleaner software" ?
    If you look in your hard drive, at the root level there is a Library. In there is a folder called Application Support, and in that you will find a folder called Adobe. Files from your previous version are there.
    However, I urge you to call Adobe support to make sure you are not doing anything that would mess up other Adobe applications.
    http://www.adobe.com/support/connect/connecthostedsupport.html

  • Having an AppleScript Move All Files of a Certain Type From Sub-Folders to Trash

    Greetings, everyone. With my introductory post, I would like to ask for help with an AppleScript I've been slaving over for the past five hours or so. I have tried Terminal and Finder commands both, along with lots and lots of Googling, and I cannot seem to get this to work.
    Specfically, I want a script to look into a folder and all of its sub-directories, locate all files with a certain extension (in this case, APP), and then send every one of those files to the trash. Originally, I planned to delete them directly with Terminal commands that required verification, but I couldn't get that to work, and I thought that this would be a more average user-friendly version, anyway.
    I also wondered if there was any universal means of referring to a system drive without referring to it by its name, since (as you'll see in the script) the directory that these *.app files will be moved from is in the Users/Shared hierarchy. However, it's meant to be used on multiple computers, so naming the OS drive on one won't work for others. If no such wild card exists, is what I'm doing now (having the script placed in the root folder of the OS drive) acceptable?
    As it is, when I run this script, it displays all the dialogs, but the APP files aren't moved. It doesn't error at all in the AppleScript editor, it just runs and then closes down. I don't know what I'm doing wrong.
    Thank you in advance for any help you can provide.
    =====
    if button returned of (display dialog "Trash all of the APP files in your SuchAndSuch folder? (This script must be in the root directory of your system drive.)" buttons {"Yes, I'm ready", "No"} default button 2 cancel button 2 with title "SuchAndSuch Folder Prep" with icon caution) is "Yes, I'm ready" then
        set theFolder to ":Users:Shared:SuchAndSuch:" as alias
        tell application "Finder"
            set theFiles to every file of theFolder whose name extension is "app"
            move theFiles to trash
        end tell
    end if
    if button returned of (display dialog "The APP files have been trashed." buttons {"OK"} default button 1 with title "SuchAndSuch Folder Prep" with icon 1) is "OK" then
    end if

    Well, you've done more fiddling than that; you've moved everything inside the Finder tell block.  Why did you do that?  If you recall my point 2 above, it is difficult to use POSIX paths or the POSIX file command inside Finder tell blocks without generating errors, but you've done both in your revision.  I'm surprised that you're surprised that it doesn't work. 
    Applescript tries to be user-friendly, but it's still a programming language, and like any programming language the devil is in the details.  Changes that seem small and innocuous to you can make big differences in the result you get.
    Now:
    /Users/Shared should be machine independent in POSIX: you don't need to specify the hard drive name and it should be universal on all OS X installations.  You can specify it directly.
    The Finder's delete command moves fils to the trash, it doesn't erase them.  Trying to use the move command to get files to the trash is a little bass-ackwards.
    Don't put anything inside a Finder tell block unless it has to be processed by the Finder.  If you do you're just begging for errors.
    There's no need to put the script at the root level of the drive.  If the Finder needs permission to delete a file it will ask.
    untangled and revised:
    set subfolderOfSharedFolder to quoted form of "/Users/Shared/<subfolder name>"
    set response to display dialog "Trash all of the APP files in your <subfolder name> folder?" buttons {"Yes, I'm ready", "No"} default button 2 cancel button 2 with title "<subfolder name> Folder Prep" with icon caution
    if button returned of response is "Yes, I'm ready" then
      -- run spotlight search
              set filesToDelete to paragraphs of (do shell script "mdfind 'kMDItemFSName == *.app c' -onlyin " & subfolderOfSharedFolder)
      -- convert posix paths to file specifiers
              repeat with thisFile in filesToDelete
                        set (contents of thisFile) to POSIX file thisFile
              end repeat
              tell application "Finder"
      delete filesToDelete
              end tell
              if button returned of (display dialog "The APP files have been trashed." buttons {"OK"} default button 1 with title "SuchAndSuch Folder Prep" with icon 1) is "OK" then
              end if
    end if

  • Delete certain files from backup

    Is it possible to:
    1) backup my iPhone (locally with my iTunes on Win7), I CAN DO THIS, of course
    2) delete only certain files from the backup (there are many tools for exploring backup, but I have not found anyone which can also delete certain file, only view and export), I CAN LOCATE THE BACKUP DIRECTORY and see the files, but is it possible to locate those that I'd like to delete and simply erase them?
    3) restore my iPhone with such an altered backup?
    Thank you
    Kamil
    PS: I need to delete certain files from var directory, but I do not have root access, so this seems to be the only solution (I do not want to jailbreak and also I do not want to start from zero, I mean to make factory reset and then to set up everything again)

    Maybe you should try to install it and try it yourself.
    You can edit sql databases (delete some records e.g. from call history), but you cannot delete files in the folders (.jpegs, .plist etc.).
    I tried to export only files, that I wanted to recover, then I have made factory reset of my iPhone, made new local backup of the empty reseted device. Then I tried to import to this empty backup those exported files, but it is also not supported. Only files which already exist in the current backup can be imported. It means that you cannot remove or add file into the backup, you can only modify it - with this tool certainly.
    Let us try it with another question: is it possible to make selective restore (to restore only certain settings, call history, SMS's, files...,) but not the whole backup?
    Thank you for your effort.

Maybe you are looking for

  • Why can't I sign in to skype wifi by using Microso...

    I can't sign in to Skype Wifi through my Microsoft account! Why?!! Solved! Go to Solution.

  • Error on Import

    Hi, I am using FDM 11.1.2, integrating with HFM using the FM11x-G5D adapter. I registered/configured the adapter in our new environment according to the documentation, but when I go to import a file I get the following error: Error: An error occurred

  • How to solve the emca error

    how to solve the warning and severe error.................... [oracle@ip-********* Oracle11g_R2]$ emca -deconfig dbcontrol db -repos drop STARTED EMCA at Mar 29, 2012 10:20:41 PM EM Configuration Assistant, Version 11.2.0.0.2 Production Copyright (c)

  • Recreate video/photo effects in Aperture from iMovie

    I am wondering if you can either export a photo with the iMovie effects stamped on them, or does anyone know how to apply their settings in Aperture maybe? In particular I would like to recreate the "Old World" and "Bleach Bypass" effects on some of

  • Firefox 2009 always loads the same flash on clipfish ?!

    Hi Arch boys & girls when i'm on clipfish.de, firefox always loads the same flash film. Even deleting cache/restarting FF -- when i click a flash film to play FF plays the same i've seen days ago ????????? Has someone an idea? ThanX in advance!!