![]() | |
| Home Page | Mark Forums Read | Today's Posts | My Replies | Classifieds | Reviews | Photo Gallery | Web Links | Share Files | Advertise With Us | Ad List |
| |||||||
| CamSoft Products Discuss Camsoft PC based CNC controller products here! |
| This forum is sponsored by: |
![]() |
| | LinkBack | Thread Tools | Search this Thread | Display Modes |
|
#1
| ||||
| ||||
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 |
|
#2
| ||||
| ||||
| On Thu, 4 Sep 2008 07:03:42 -0500, "Karl Townsend" <karltownsend.NOT@embarqmail.com> 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
| ||||
| ||||
| 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 |
![]() |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | Search this Thread |
| Display Modes | |
| |
Similar Threads | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Converting Illustrator files to Gcode files | acoop101 | General Metal Working Machines | 1 | 06-05-2008 03:53 PM |
| Need Help!- not listing all files on file get | BRIAN SIMP | Mastercam | 1 | 02-06-2008 08:17 PM |
| WKlaser usb stick files to delete? | Micheal Donnellan | Laser Engraving & Cutting Machines | 5 | 01-30-2008 01:58 PM |
| Delete | Mif4 | Printing, Scanners, Vinyl cutting and Plotters | 0 | 09-25-2007 11:27 AM |
| Delete Duplicates command | magicaldog | Rhino 3D | 3 | 05-05-2006 04:47 AM |