Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- c:\RespMv>type x.bat
- reg add "HKU\**\Software\Microsoft\Windows\CurrentVersion\Internet Settings" /v Pr
- oxyEnable /t REG_DWORD /d 1 /f
- reg add "HKU\**\Software\Microsoft\Windows\CurrentVersion\Internet Settings" /v Pr
- oxyServer /t REG_SZ /d "192.168.0.87:1" /f
- reg add "HKU\**\Software\Microsoft\Windows\CurrentVersion\Internet Settings" /v Pr
- oxyOverride /t REG_SZ /d "<local>" /f
- C:\RespMv>wmic useraccount get sid > f.txt
- C:\RespMv>type f.txt
- SID
- S-1-5-21-726440912-1910258724-2457818750-500
- S-1-5-21-726440912-1910258724-2457818750-501
- S-1-5-21-726440912-1910258724-2457818750-1003
- S-1-5-21-726440912-1910258724-2457818750-1002
- S-1-5-21-726440912-1910258724-2457818750-1000
- C:\RespMv>
- Here i want read the File: f.txt line by line,
- Each line would be inserted on x.bat File replacing the ** by each line, first time the file x.bat (after replacements) is:
- reg add "HKU\S-1-5-21-726440912-1910258724-2457818750-500\Software\Microsoft\Windows\CurrentVersion\Internet Settings" /v Pr
- oxyEnable /t REG_DWORD /d 1 /f
- reg add "HKU\S-1-5-21-726440912-1910258724-2457818750-500\Software\Microsoft\Windows\CurrentVersion\Internet Settings" /v Pr
- oxyServer /t REG_SZ /d "192.168.0.87:1" /f
- reg add "HKU\S-1-5-21-726440912-1910258724-2457818750-500\Software\Microsoft\Windows\CurrentVersion\Internet Settings" /v Pr
- oxyOverride /t REG_SZ /d "<local>" /f
- and then execute the file x.bat
- and read the next line of the f.txt file....
- thanks any advice?
Add Comment
Please, Sign In to add comment