586,071 active members*
3,820 visitors online*
Register for free
Login
Results 1 to 3 of 3
  1. #1
    Join Date
    Mar 2004
    Posts
    1543

    Command file to delete files

    I'm looking to make a computer command file that will search your whole computer in all folders for these files and delete them. See the attached for the file list.

    Any suggestions on how to do this? I end up doing this task a couple times a year and there must be a way to automate it.

    Karl
    Attached Thumbnails Attached Thumbnails camsoft files.bmp  

  2. #2
    Join Date
    Mar 2004
    Posts
    1543
    On Thu, 4 Sep 2008 07:03:42 -0500, "Karl Townsend"
    <[email protected]> wrote:

    >I need to search my whole computer in all folders for these files and delete
    >them. I'm trying to make a command file to automate the process. The
    >commands below will do one drive.
    >
    >I'd like to improve this batch file by prompting for which drive to clean.
    >Any suggestions?

    If camclean.bat is in your path you can do something like
    this:

    %1:
    cd\
    del /s DMC32.DLL
    del /s DMCBUS32.DLL
    del /s DMCGC32.DLL
    del /s DMCNET.EXE
    del /s DMCNET.TLB
    del /s DMCPAR32.DLL
    del /s DMCREG.OCA
    del /s DMCREG.OCX
    del /s DMCSER32.DLL
    del /s DMCSHELL.OCX
    del /s GLWDMISA.INF
    del /s GLWDMISA.SYS
    del /s GLWDMPCI.INF
    del /s GLWDMPCI.SYS
    pause
    exit

    Then start the command with something like "camclean g".
    This would switch to drive D:, go to the root directory and
    then run your list of commands, pause to see what happened
    and then close the prompt window hitting any key. Remove the
    "exit" if you want the window to stay open for more use.

    If you forget to feed it a drive letter it will just do the
    current drive where the batch file is located.

    I've got some other ideas, but I haven't tested them yet.
    The problem with batch files is getting user input into
    them. Locating the old Choice.exe and using it can work with
    multiple choice questions, otherwise it gets messy.

    --
    Leon Fisk
    Grand Rapids MI/Zone 5b
    Remove no.spam for email

  3. #3
    Join Date
    Mar 2004
    Posts
    1543
    Here is one solution I came up with, but you will need to
    get a copy of Choice.exe and put it in your path somewhere
    (you might already have a copy). This program used to come
    with older versions of DOS, only comes with the Resource
    kits now. You can get several versions in a bundle here:

    http://my.vector.co.jp/servlet/Syste...dkclonesup.zip

    Change your batch file to the following text in between the
    equal signs:

    ===
    @ECHO OFF
    choice /Ccdefgh0 Choose drive letter to clean or 0 to abort
    IF ERRORLEVEL 1 SET ERRORLEV=c
    IF ERRORLEVEL 2 SET ERRORLEV=d
    IF ERRORLEVEL 3 SET ERRORLEV=e
    IF ERRORLEVEL 4 SET ERRORLEV=f
    IF ERRORLEVEL 5 SET ERRORLEV=g
    IF ERRORLEVEL 6 SET ERRORLEV=h
    IF ERRORLEVEL 7 GOTO END

    %ERRORLEV%:
    cd\
    del /s DMC32.DLL
    del /s DMCBUS32.DLL
    del /s DMCGC32.DLL
    del /s DMCNET.EXE
    del /s DMCNET.TLB
    del /s DMCPAR32.DLL
    del /s DMCREG.OCA
    del /s DMCREG.OCX
    del /s DMCSER32.DLL
    del /s DMCSHELL.OCX
    del /s GLWDMISA.INF
    del /s GLWDMISA.SYS
    del /s GLWDMPCI.INF
    del /s GLWDMPCI.SYS
    pause

    :END
    exit
    ===

    You could edit/add a couple more drive letters if you wish.
    I think the code is pretty self explanatory. You can get a
    list of parameters for Choice by entering "Choice /?" at a
    command prompt. It is a really simple little program.

    See if that does what you want.

    --
    Leon Fisk
    Grand Rapids MI/Zone 5b
    Remove no.spam for email

Similar Threads

  1. Converting Illustrator files to Gcode files
    By acoop101 in forum Uncategorised CAM Discussion
    Replies: 4
    Last Post: 03-10-2023, 11:13 PM
  2. not listing all files on file get
    By BRIAN SIMP in forum Mastercam
    Replies: 1
    Last Post: 02-07-2008, 03:17 AM
  3. WKlaser usb stick files to delete?
    By Micheal Donnellan in forum Laser Engraving / Cutting Machine General Topics
    Replies: 5
    Last Post: 01-30-2008, 08:58 PM
  4. Delete
    By Mif4 in forum Printing, Scanners, Vinyl cutting and Plotters
    Replies: 0
    Last Post: 09-25-2007, 05:27 PM
  5. Delete Duplicates command
    By magicaldog in forum Rhino 3D
    Replies: 3
    Last Post: 05-05-2006, 10:47 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •