Windows 10: I have 100 TXT files that I would like to replace a phrase from a list

Discus and support I have 100 TXT files that I would like to replace a phrase from a list in Windows 10 Support to solve the problem; Hello everyone, I just wondered can anyone help me with this simple task. I have a 100 identical text files that I would like to replace a specific... Discussion in 'Windows 10 Support' started by Human1, Nov 11, 2020.

  1. Human1 Win User

    I have 100 TXT files that I would like to replace a phrase from a list


    Hello everyone, I just wondered can anyone help me with this simple task.

    I have a 100 identical text files that I would like to replace a specific word or small phrase .

    I can add these TXT files into a CSV file in 1st column with a path to where they are on my
    windows 10 PC example c:\files\file1.txt

    In the 2nd column of CSV, I have the phrase I would like to replace all occurrences of.

    Now in the 3rd column I have the unique phrase for each text file that I want it changed to.

    Can anyone please help me create a simple bat file that can update these text files in seconds.

    Thank you very much

    :)
     
    Human1, Nov 11, 2020
    #1

  2. Generating a .txt based file list in Windows 7

    No, that > bla.txt is the target file to write to. You could use a wildcard in the argument, ie c:\windows\*.txt which would list all dlls in c:\windows. But adding that to a simple right-click would be tricky.

    Basically you would execute fancyfile.bat c:\windows\*.txt, fancyfile.bat would then write all .txt files to bla.txt.
     
    DanTheBanjoman, Nov 11, 2020
    #2
  3. dark2099 Win User
    Generating a .txt based file list in Windows 7

    I want to be able to generate a .txt file that lists all the files and folders in a specific folder on my PC, but don't know the name of any programs that do that. Searched on google a bit and came up with this guide, but it's for XP and I can't seem to find some of the folder options to modify the .bat file. Any suggestions? Thanks

    http://www.theeldergeek.com/file_list_generator.htm

    EDIT: The .bat file will do what I want if it is in the folder I want to do it in, but the option I want to add is having the right click option that it shows.
     
    dark2099, Nov 11, 2020
    #3
  4. AsRock Win User

    I have 100 TXT files that I would like to replace a phrase from a list

    Generating a .txt based file list in Windows 7

    Could he not use a wildacard ?. So it be dir %1 /a /s /b > *.txt and then it would list all .TXT files then.
     
    AsRock, Nov 11, 2020
    #4
Thema:

I have 100 TXT files that I would like to replace a phrase from a list

Loading...
  1. I have 100 TXT files that I would like to replace a phrase from a list - Similar Threads - 100 TXT files

  2. I would like to install Windows11

    in Windows 10 Customization
    I would like to install Windows11: How do I install Windows 11? https://answers.microsoft.com/en-us/windows/forum/all/i-would-like-to-install-windows11/22cff33d-5468-4cfd-a05a-a2b4246e2c9d
  3. I have multiple files with "." In them and I'd like to replace them with a "space". Is that...

    in Windows 10 Ask Insider
    I have multiple files with "." In them and I'd like to replace them with a "space". Is that...: submitted by /u/Grasshoppa01 [link] [comments] https://www.reddit.com/r/Windows10/comments/fqap51/i_have_multiple_files_with_in_them_and_id_like_to/
  4. I would like to have help

    in Windows 10 BSOD Crashes and Debugging
    I would like to have help: not really sure if this is in right windows topic but correct my wrongs lets start off for the last few 2-3 days my cmd has been popping up saying Too many arguments in command line. The process tried to write to a nonexistent pipe. FINDSTR: Cannot open...
  5. Have an sign in photo that I would like to delete

    in User Accounts and Family Safety
    Have an sign in photo that I would like to delete: Hi, Have an sign in photo that I would like to delete and don't know how to. Any advice appeciated. 112093
  6. I have an empty Folder I am denied access to an would like to delete

    in Windows 10 Support
    I have an empty Folder I am denied access to an would like to delete: I am new to Windows 10. Use Win 7 at work and been a Mac User at home for the last 5 years.... Need a Windows machine. But I have an issue trying to delete a folder on my One Drive. It is actually a folder within a folder. No files. I am definitely logged on to the PC as a...
  7. I would like to have a definitive Answer, please.

    in Windows 10 Updates and Activation
    I would like to have a definitive Answer, please.: Scenario: Computer A is upgraded from a genuine Win 7 or 8 to Windows 10. Activated and digital entitled. A bootable media is created. I change Computer A's motherboard to a new one but not the same make and model. I then use the same bootable media to reinstall Windows...
  8. Program I would like to use as default not listed

    in Windows 10 Software and Apps
    Program I would like to use as default not listed: I have a program I would like to use for photos, PDFs, jpegs, tifs and pngs called "BlueBeam". When I try to use this program as a default, Windows will not list it or even give me an opportunity to search my hardware and select it. How do I fix that ? *Think 56165
  9. I would like to have my laptop wake on USB

    in Windows 10 Support
    I would like to have my laptop wake on USB: The computer I have now will stay on when the top is closed, which is what I want. But when it goes to sleep I cannot wake it without lifting the top and pressing power. I use monitors and usb keyboard and I want to be able to activate the computer using it. I have gone...
  10. I would like to change the way file explorer looks

    in Windows 10 Support
    I would like to change the way file explorer looks: I would like to change the way file explorer looks, it looks like this now [img] I'd like it to look more like this [img] Any and all help is very much appreciated. Thanks 73631