need a batch file to find string from a file (each line 1 string) and search in all text…
- User
need a batch file to find string from a file (each line 1 string) and search in all text files in current folder, create result file output contain string ---- name file in each file NOTICE: all file is unicode
- Assistant
Creating a batch file to search for a list of strings from one file in all text files (in Unicode format) in the current directory involves using some command-line utilities, as the Windows command prompt does not handle Unicode text very well. However, you can still accomplish this with the right tools.
- User
need a batch file to find string from a file (each line 1 string) and search in all text files in current folder, create result file output contain string ---- "ONLY name file" in each file NOTICE: all file is unicode
- Assistant
- User
need a batch file to find string from a file (each line 1 string) and search in all text files in current folder, create result file output contain string ---- "ONLY name file" in each file NOTICE: all file is unicode search fast and optimize
- Assistant
- User
for %I command show only 8thto12th character of filename (windows command)
- Assistant
In Windows Command Prompt, if you want to display only specific characters (like the 8th to the 12th) from a filename, you can use a combination of the
forcommand,setcommand, and string manipulation.Here's how you can do it in a one-liner directly in the Command Prompt:
cmdfor %I in (*) do @set "name=%~nI" && set "name=!name:~7,5!" && echo !name!Explanation of the Command: