-
Notifications
You must be signed in to change notification settings - Fork 0
Hints and tips
Home > Hints and tips
(Microsoft Windows)
This can be useful in many circumstances, especially to populate the Filename column in a ChiMetadataSheet Excel File.
- Using Windows Explorer, navigate to the folder containing the files
- Hold down the shift key and right-click on an empty region in the folder (ie. not on a file or subfolder)
- From the pop-up menu select Open command window here
- In the Command Window that appears, type one of the following:
- To save the filenames to a file (here named 'filenames.txt') enter dir /b > filenames.txt
- To go directly to the clipboard enter: dir /b | clip
- To get some of the filenames (say Grams SPC files) enter: dir /b *.spc > filenames.txt or dir /b *.spc | clip
- Replace *.spc with the file extension required. For multiple file extensions, separate them with a semicolon eg. *.txt;*.csv
- For more complicated selection options use wildcards, where a question mark stands for any single character and an asterisk (*) stands for multiple consecutive characters.
If using the 'save to file' version, a file called filenames.txt will now appear in the folder. This contains the filenames chosen and can be edited using Notepad (or a better text editor such as Notepad++). Any filename will suffice, so feel free to be creative. Note that the file is created before the dir command executes, so it will appear in the file listing if it fits the naming convention requested (eg. all files, or *.txt files)
(Microsoft Windows)
This can be useful in many circumstances, especially to complete the Path to data files: field in a ChiMetadataSheet Excel File.
- Using Windows Explorer, navigate to the folder containing the files
- Click in the folder location bar at the top of the Explorer window, ensuring not to click on any of the folder names
- Copy and paste as required
Copyright (c) 2014-2024 Alex Henderson