About 267,000 results
Open links in new tab
  1. Batch / Find And Edit Lines in TXT file - Stack Overflow

    I want to create a batch while which finds specific lines in a batch file and are able to edit these lines. Example: //TXT FILE// ex1 ex2 ex3 ex4 i want to let the batch file find 'ex3' and edit...

  2. Changing a batch file when its running - Stack Overflow

    May 25, 2009 · But running from a self-modifying batch file meant its scripts could also do things like load TSR programs and in fact could do pretty much anything you could put in a batch file. Which …

  3. replace - Edit text file using batch file - Stack Overflow

    May 10, 2014 · There are some examples are writing into a new file, but the new file has line number in front of each line. I don't find a useful instruction how to write batch scripts, and none of the update …

  4. Batch file to edit a text file and replace text - Stack Overflow

    I need to create a batch file that will open a text file look for a specific text and replace it with another word. Then save the file and rename it to .reg when its done.

  5. Edit XML with batch file - Stack Overflow

    Apr 12, 2013 · I am wondering if there is any way to create a batch file that can edit a line in an XML document. The line would be identified by the preceding line. the idea would be as follows: If line == …

  6. Is it possible to modify a registry entry via a .bat/.cmd script?

    Sep 24, 2008 · PowerShell scripts must first be enabled on the client machine by using Set-ExecutionPolicy. I have a batch script which modifies the registry to set the execution policy to …

  7. Windows Batch: How to add Host-Entries? - Stack Overflow

    I want to use this batch script to add new entries into my host file automatically by using windows batch. Unfortunately, the script just adds one single line to the hosts file, also when i run the

  8. Batch files don't run - they're being opened with notepad

    0 Try right clicking it, hovering over "open with" and selecting "command prompt". As a developer of batch files, windows opens .bat with notepad by default. Someone who doesn't write them will …

  9. Batch File To Read And Modify Text File - Stack Overflow

    If you want to create a BAT file, you need to move the FOR command and edit it a little bit, changing the %a loop variable names to be %%a. You can then place the BAT file either in the current directory, …

  10. command line - String replacement in batch file - Stack Overflow

    We can replace strings in a batch file using the following command set str="jump over the chair" set str=%str:chair=table% These lines work fine and change the string "jump over the chair" to "jum...