![]() Go to the specific directory where files are stored.More simple way is to get the file names in a directory through file explorer. s switch can be used along with /b if sub directories are also required to include for pulling file names.Īs soon as command is executed you can find the output file on given location with names of files in it. Enclose in ” ” if there are spaces in destination path or file name. We can use other directory than current one by explicitly giving the directory path. BackupFilesNames.txt : Output file name.dir /b : It will pick just names of files in current directory.Get file names through dos commandįirst of all open cmd and go to directory from where file names are required to be retrieved. ![]() ![]() As an example I will be using few backup files available on a local drive on my machine i.e. I am sharing dos command and windows file explorer method here. This can be done in number of ways using windows file explorer, dos command, powershell, T-SQL etc. ![]() There were dozens of files and not optimal to capture the name one by one. I had the list of specified databases with me and now it was required to pull out the names of all backup files from a directory. That was to match with list of databases to make sure that backup files of specific databases are available physically. I was required to list names of all backup files in a directory on a windows on premise deployment. DbDigger List file names in a directory by cmd and file explorer ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |