A Windows 98 & ME forum. Win98banter

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » Win98banter forum » Windows 98 » General
Site Map Home Authors List Search Today's Posts Mark Forums Read Web Partners

dos wild card syntax comm



 
 
Thread Tools Display Modes
  #1  
Old August 4th 04, 02:47 PM
barry martin
external usenet poster
 
Posts: n/a
Default dos wild card syntax comm

M i have a real mess here, i cannot complete running
M scandisk to reinstall win98. the system generated 10,000
M files to put my data into. "file0001.chk thru
M file9999.chk". Is there a DOS wild card command (include
M syntax) that can combine all of these files into one
M directory or change the name of these files? thank you

Good grief that's a lot of bad files! Did the power flicker or get
shut off when the computer was doing a major process? (If power
flicker good reason to get a UPS.)

Are the FILE*.CHKs needed? If so, keep/rename before doing anything
else with them. TYPE FILE0001.CHK | MORE is one way. If you have a
old copy of Norton Utilities use it's VIEW command. If you combine
all the FILE*.CHKs it's going to be a major mess extracting the
sections again.

Assuming you want to keep:
At the root directory (i.e., "C:\")
MD FILES Make a Directory called FILES
CD FILES Change to the Directory called FILES
MOVE C:\FILE*.CHK C: Move all the files in the root
directory starting with FILE and ending
with the extension CHK to the current
directory. (I'm assuming you're on the C:
drive; if another substitute the
appropriate drive letter.)
Why are we moving the files? Because the root directory can only
have so many files but subdirectories ("C:\FILES") can have nearly
unlimited.

Assuming you want to get rid of them:
DEL C:\FILE*.CHK DELete all files in C:'s root directory
with that filename pattern.

OK, let's assume you do SCANDISK again and end up with a couple
hundred more. [Might be a good idea to get a new hard drive like
another respondent suggested!] If you do the MOVE command (above) the
computer is going to see there is a file by that name already and ask
if you want to overwrite (erase) the old one. If you change one
character the filename is now different. If I remember correctly MOVE
has a problem with that so we need to do it in two steps:

(Next three lines repeated from above so easier to refer to.)

MD FILES Make a Directory called FILES
CD FILES Change to the Directory called FILES
MOVE C:\FILE*.CHK C: Move all the files in the root

We've already created the FILES directory so don't need that again.

CD FILES if you're not in the FILES subdirectory currently.

COPY C:\FILE*.CHK C:*.CHL This will copy all of the files with
the pattern FILE*.CHK but now with the extension CHL.
DEL C:\FILE*.CHK This will delete the files you just copied.


-
¯ barry.martinþATþthesafebbs.zeppole.com ®

* Extremely neat - even combs his underarm hairs.
---
þ RoseReader 2.52á P003186
þ The Safe BBS þ Bettendorf, IA 563-359-1971
---
þ RIMEGate(tm)/RGXMod V1.13 at BBSWORLD *
 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
dos wild card syntax command for combining files Don Phillipson General 3 August 3rd 04 10:07 PM
98 Will not install network card Time Traveller General 1 July 21st 04 12:21 PM
video card Todd Monitors & Displays 1 July 1st 04 04:47 PM
pci card not installed yet still recognized brad General 14 June 27th 04 06:25 AM
Wifi card blows out network Mark Adams Networking 0 June 9th 04 09:32 PM


All times are GMT +1. The time now is 07:20 AM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 Win98banter.
The comments are property of their posters.