SED help with batch

June 19, 2009 at 02:12:47
Specs: Windows Vista, 1024
@echo off

set ORIGINAL=ictsu
set REPLACE=string

:: ASCII assembler by Hebert Kleebauer
echo Bj@jzh`0X-`/PPPPPPa(DE(DM(DO(Dh(Ls(Lu(LX(LeZRR]EEEUYRX2Dx=> %temp%.\SBS2.COM
echo 0DxFP,0Xx.t0P,=XtGsB4o@$?PIyU!WvX0GwUY Wv;ovBX2Gv0ExGIuht6>> %temp%.\SBS2.COM
echo ?@}IKuNWpe~Fpe?FNHlF?wGMECIQqo{Ox{T?kPv@jeoSeIlRFD@{AyEKj@>> %temp%.\SBS2.COM
echo iqe~1NeAyR?mHAG~BGRgB{~H?o~TsdgCYqe?HR~upkpBG?~slJBCyA?@xA>> %temp%.\SBS2.COM
echo LZp{xq`Cs?H[C_vHDyB?Hos@QslFA@wQ~~x}viH}`LYNBGyA?@xAB?sUq`>> %temp%.\SBS2.COM
echo LRy@PwtCYQEuFK@A~BxPtDss@fFqjVmzD@qBEOEenU?`eHHeBCMs?FExep>> %temp%.\SBS2.COM
echo LHsPBGyA?@xAunjzA}EKNs@CA?wQpQpKLBHv?s`WJ`LRCYyIWMJaejCksl>> %temp%.\SBS2.COM
echo H[GyFGhHBwHZjjHeoFasuFUJeHeB?OsQH[xeHCPvqFj@oq@eNc?~}Nu??O>> %temp%.\SBS2.COM
echo ~oEwoAjBKs?Zp`LBzHQzyEFrAWAG{EFrAqAGYwHTECIQ{coKIsaCsf{Oe~>> %temp%.\SBS2.COM
echo CK}Ayre~CNFA{rAyEKFACrA{EKGAjbA}eKGSjNMtQFtc{OAyDGFj?{FDGQ>> %temp%.\SBS2.COM
echo KAjNVk_OCAx@e?f{o?CosI}1EGizhljJ~H1ZeG}JBA~rACBMDGjjDG@g0>> %temp%.\SBS2.COM

%temp%.\SBS2.COM 0 "%ORIGINAL%" "%REPLACE%" < FILENAME.EXT > %temp%.\T1.DAT
copy/y %temp%.\T1.DAT FILENAME.EXT > nul

for %%? in (ORIGINAL REPLACE) do set %%?=

del %temp%.\T1.DAT
del %temp%.\SBS2.COM


I need help editing this code with SET /p for user inputs to edit the Hosts file on a computer. i cant get it to work for me. would someone be kind and edit so i can have two user inputs change and replace to host file using the above code that needs changed.


Thank you
Brock


See More: SED help with batch

Report •


#1
June 19, 2009 at 18:51:09
Help people Thanks

Report •

#2
June 19, 2009 at 19:46:53
Dunno what this has to do with SED.

Looks like it's creating SBS2.com and using that to do a string replacement.

Wouldn't it be more straightforward to use the string replacement built into windows?


=====================================
If at first you don't succeed, you're about average.

M2


Report •

Related Solutions


Ask Question