Tom's Guide | Tom's Hardware | Tom's Games
![]() |
![]() |
![]() |
I hope someone could help me. I would like to create a batch file that will replace the line 'shell=explorer' to 'shell=winfile' in c:\windows\system.ini. Anyone have any idea; or is this even possible? Thanks.

Yep, that's possible. The following script will do it:
===== BATCH SCRIPT BEGIN =====
@echo off
if not exist %windir%.\system.ini goto eof:: 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.COMcopy/y %windir%.\system.ini %temp%.\system.ini > nul
:: Set old and new string below. Warning: the process is case sensitive !
%temp%.\SBS2.COM 0 "shell=explorer" "shell=winfile" < %temp%.\system.ini > %windir%.\system.inidel %temp%.\SBS2.COM
:eof
===== BATCH SCRIPT END =====The search is case sensitive ('Explorer' is different from 'explorer'). A copy of system.ini is saved on the %temp% directory, as a backup.
If SED.exe is avaliable (not a common thing), this would also do it:
type %windir%.\system.ini |SED "s/shell=explorer/shell=windir/g" > %windir%.\system.ini
That would aslo be case sensitive.
-- Leonardo Pignataro - Secret_Doom --
secret_doom@hotmail.com
www.batch.hpg.com.br_________________________________________________________________________________________________________________

![]() |
Interlnk and Intersrv
|
Laptop with No Cd-drive
|

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.
| Ads by Google |