Skip to content

Psyko38/Search-a-file

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 

Repository files navigation

Search-a-file

The "@echo off" code is a command that disables the display of commands in the Windows console. This means that when you run a batch script, the commands will not be displayed on the screen.

The rest of the code is a batch script that searches for files in a specific directory. The script begins by asking the user to enter the directory in which they wish to search. Next, the user can choose between two search options: search for files with a particular extension or search for files with a specific name.

If the user chooses to search for files with a particular extension, the script asks the user to enter the extension of the files they wish to search for. The script then searches the specified directory for all files with the specified extension. The search results are stored in a text file called "output.txt".

If the user chooses to search for files with a specific name, the script asks the user to enter the name of the file they wish to search for. The script then searches the specified directory for all files with the specified name. The search results are also stored in a text file called "output.txt".

If no files are found, the script displays an error message. If files are found, the script opens the "output.txt" file so that the user can see the search results.

About

search for a file on your PC

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published