dos command - Techist - Tech Forum

Go Back   Techist - Tech Forum > Computer Software > Microsoft Windows and Software
Click Here to Login
Closed Thread
 
Thread Tools Display Modes
 
Old 07-11-2006, 10:56 AM   #1 (permalink)
Banned
 
Join Date: Jul 2003
Posts: 878
Default dos command

is there a search/ find command in DOS to find a certain file? If so, what is the correct syntax to do it please? TIA

I am trying to find the following:

io.sys
config.sys

I found io.sys and tried copying it but it didn't work with the following command to a floppy copy io.sys a:

ANY IDEA WHY?

tia
__________________

24giovanni is offline  
Old 07-11-2006, 12:31 PM   #2 (permalink)
Master Techie
 
Join Date: Oct 2003
Posts: 2,258
Default

are you trying to make a bootable floppy or something?
The find command in dos is not for locating files, more like finding strings in files.

You can do a dir on the directory and that will show you all items there. You can do a dir /p to pause at each on screen page, ussually 80 items so you can read it and then move on. You can also do a dir filename.ext /s and that will scan the whole directory structure... i guess that might work for you...
__________________

Inaris is offline  
Old 07-11-2006, 07:16 PM   #3 (permalink)
Wizard Techie
 
Join Date: Apr 2004
Posts: 3,247
Default

try the fully qualified locale/name to copy it
__________________
If you argue with an idiot he will drag you down to his level and beat you with experience.

I am not a fast writer.
I am not a slow writer.
I am a half-fast writer.

-Robert Asprin
killians45 is offline  
Old 07-11-2006, 08:53 PM   #4 (permalink)
Monster Techie
 
Join Date: May 2004
Location: /usr/root/mn/us
Posts: 1,118
Default

The way to find a file through dos is to do a dir /a /s and pipe it to find.

This would be the way on a default windows install
Code:
dir /a /s c: | find /i "io.sys"
dir /a /s c: | find /i "config.sys"
Just to let you know, IO.SYS and CONFIG.SYS are located in the C:\ directory for a default install. They're hidden system files though, so you'll need to set explorer to see them.
__________________

Its a frigging Laptop, not a Labtop!!!!
bla!! is offline  
Closed Thread

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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off




Copyright 2002- Social Knowledge, LLC All Rights Reserved.

All times are GMT -5. The time now is 06:49 PM.


Powered by vBulletin® Version 3.8.8 Beta 1
Copyright ©2000 - 2017, vBulletin Solutions, Inc.