Search found 4 matches
- 27 Feb 2018 12:47
- Forum: DOS Batch Forum
- Topic: How to read lines in txt file in batch
- Replies: 10
- Views: 10991
Re: How to read lines in txt file in batch
In my case I'm doing a batch to download and modify a file written in Python. Download part is working: echo Downloading scoutr.py bitsadmin /transfer DownloadJob /download /priority normal "http://domain.com/script.py" "%cd%\my.py" >null Can you use: @echo off ::7Zip set Link=http://d.7-zip.org/a/7...
- 27 Feb 2018 11:53
- Forum: DOS Batch Forum
- Topic: Store windows positions
- Replies: 11
- Views: 11181
Re: Store windows positions
I think that is not possible with DOS Batch.
Maybe this: https://github.com/adamsmith/WindowsLayoutSnapshot
Maybe this: https://github.com/adamsmith/WindowsLayoutSnapshot
- 23 Feb 2018 11:22
- Forum: DOS Batch Forum
- Topic: Replace greater than signal (">")
- Replies: 3
- Views: 3880
Re: Replace greater than signal (">")
So simple when you know it! Worked well!
Thank you! I've been trying this for 2 days.
Thank you! I've been trying this for 2 days.
- 23 Feb 2018 09:10
- Forum: DOS Batch Forum
- Topic: Replace greater than signal (">")
- Replies: 3
- Views: 3880
Replace greater than signal (">")
Hi! I'm trying to replace a string in a text file, but the string has the greater sign. original.txt file: url = "http://myurl/<API_KEY>/xx" I need to replace the <API_KEY> with variable contents: set var=12345678 For /f "tokens=* delims=/" %%a in (original.txt) do ( Set str=%%a set str=!str:<API_KE...