1. Computer problem? Tech Support Guy is completely free -- paid for by advertisers and donations. Click here to join today! If you're new to Tech Support Guy, we highly recommend that you visit our Guide for New Members.

Windows batch file help

Discussion in 'Windows XP' started by forte21xx, Jan 28, 2007.

Thread Status:
Not open for further replies.
  1. forte21xx

    forte21xx Thread Starter

    Joined:
    Mar 2, 2002
    Messages:
    157
    I'm trying to create a simple desktop cleanup batch file. What I want to do is to take every file located on my desktop except for a few shortcuts and move them to a certain directory. Does anyone know how to do this?
     
  2. TerryNet

    TerryNet Moderator

    Joined:
    Mar 23, 2005
    Messages:
    78,217
    First Name:
    Terry
    I'd first try moving everything to the certain directory, and then move the few shortcuts back.

    If this doesn't work (maybe because of trying to move Recycle Bin) then write a loop to move each item individually with enough IF's to omit the ones that are to remain.
     
As Seen On
As Seen On...

Welcome to Tech Support Guy!

Are you looking for the solution to your computer problem? Join our site today to ask your question. This site is completely free -- paid for by advertisers and donations.

If you're not already familiar with forums, watch our Welcome Guide to get started.

Join over 733,556 other people just like you!

Loading...
Thread Status:
Not open for further replies.

Short URL to this thread: https://techguy.org/539080

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice