Exactly. That works fine. You have to enclose parameters that have spaces in them with quotes (like for any other cmd line util), otherwise the 2 parts are passed as 2 separate arguments. Do you have unicode inf files? (I've never seen one as far as I recall). Either ways, you'd only need to make minor changes to the 2 lines that open files to make it work with unicode files, like such: Set f = fso.OpenTextFile(filename, 1, False, -1) '1=ForReading, -1=TristateTrue and Set f = fso.CreateTextFile(filename, True, True) If you have some of both kinds (again, strange...) then you could easily detect it (look for byte order mark, i.e. 0xFF 0xFE for Little Endian, first 2 bytes of the file), then open the file accordingly (wouldn't take 5 minutes to do) Thank you, have supported unicode Can be more functional? Designated Remove [Registry Keys] Arbitrary line Example: test.vbs test.inf "Registry Keys" HKLM,"SYSTEM\CurrentControlSet\Services\gagp30kx,"%gagp30kx_svcdesc% -------------------------------------------------------------------------------------------- test.inf [Registry Keys] aaa HKLM,"SYSTEM\CurrentControlSet\Services\gagp30kx,"%gagp30kx_svcdesc% bbb The revised: test.inf [Registry Keys] aaa bbb ----------------------------------------------------------------------------------------------