Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.
Looking for DOS Command to search a file on C drive
Name: FrogHat Date: December 18, 2000 at 14:22:20 Pacific
Comment:
Does anybody know a command that will find a file on C drive using a DOS/MS-DOS command? It would be nice to locate a file anywhere in C drive and then run that file right away. How do I do that?
Name: rambler Date: December 18, 2000 at 14:48:04 Pacific
Reply:
DIR {filename} /S
will search all folders for {filename}
0
Response Number 2
Name: mcpt Date: December 18, 2000 at 14:50:33 Pacific
Reply:
To search in dos, goto C:\
type
dir/s filename.extension
if you dont know the file extension use filename.*
0
Response Number 3
Name: Michael Date: December 18, 2000 at 18:45:10 Pacific
Reply:
To find the file and run it make this batch file.
@echo off if exist %temp%\runfile.bat del %temp%\runfile.bat dir /b /s notepad.exe > %temp%\runfile.bat call %temp%\runfile.bat
That's it. If you do not have a temp directory set in your DOS environment (DOS shell within windows will have one set already) then just add this after the first line
Summary: These are your basic DOS commands. To copy a file from c to a you type copy c:\dir\file.ext a:\ dir is the directory struture where the file is located and file.exe is the file name and extension. Y...
Summary: I want to hide a file on cd (not using attribute +h).I want produce a file to be really hidden which anyone can not access and open it. May anybody help me? HYPERNOVA ...
Summary: I have a CD-ROM Driver with DOS Eject, Close, Lock & Unlock Utilities called GSCD.EXE on my Resource Site (149kb Download) which may do what you want if you add the EJECT Command to your Batch File! Y...