cyberchicken Posted May 21, 2004 Posted May 21, 2004 What is the plainest way to strip "HIDE" keyword from sysoc.inf using cmd.exe?Also, at what time would you do it? Before or after XPC?Thank you.
GreenMachine Posted May 22, 2004 Posted May 22, 2004 I would guess a for loop, looking for lines that have the word hide, and then you should know it is between the nth and nth+1 comma. FOR, FINDSTR, TOKENS, DELIMS are the things to adjust ... I dunno: I just leave 'em hdden!
cyberchicken Posted May 22, 2004 Author Posted May 22, 2004 Ok I'd expected that.I'll try to do it before xpc and remove.I dunno: I just leave 'em hdden!You lazy boy! BTW do you like my new avatar? The other one was too aggrssive. This one's much more like I feel
GreenMachine Posted May 22, 2004 Posted May 22, 2004 Lazy indeed ... i did remove the hidden once, and it did nothing ofr me, 'cept mess upi Add/Remove Programs. You can still pick using Components in WINNT.SIF.My opinion: do it before XPCREATE: It never checks those files.Yes, looks kind of like the Funky Chicken from years ago ...
cyberchicken Posted May 22, 2004 Author Posted May 22, 2004 My opinion:I always value your opinion.do it before XPCREATE: It never checks those files.actually some slipstreming changes sysoc.infplain cd and after xpc are differentthe newer one hasDriverVer=07/01/2001,5.1.2600.1106instead of DriverVer=07/01/2001,5.1.2600.0andWMAccess=ocgen.dll,OcEntry,wmaccess.inf,,7OEAccess=ocgen.dll,OcEntry,oeaccess.inf,,7WMPOCM=ocgen.dll,OcEntry,wmpocm.inf,,7TabletPC=tabletoc.dll,TabletSetupProc,Tabletpc.inf,HIDE,7that the original doesn't have.I'll save the HIDE the modifications in a file and inject them in the source before XPC runs. We'll see if it works.Thank you
GreenMachine Posted May 22, 2004 Posted May 22, 2004 My guess would be that the Service Pack updates the driver version number: XPCREATE only touches SVCPACK.INF, DOSNET.INF and TXTSETUP.SIF (if SATA added).As for your HIDE thing, it looks like HIDE is always the same place in each string, which simplifies a programmed replacement ...
cyberchicken Posted May 22, 2004 Author Posted May 22, 2004 My guess would be that the Service Pack updates the driver version number: XPCREATE only touches SVCPACK.INF, DOSNET.INF and TXTSETUP.SIF (if SATA added).AgreeAs for your HIDE thing, it looks like HIDE is always the same place in each string, which simplifies a programmed replacement ...Ok, I'll do the things the right way
GreenMachine Posted May 22, 2004 Posted May 22, 2004 ... Ok, I'll do the things the right way ...That's what I like to hear!
cyberchicken Posted May 22, 2004 Author Posted May 22, 2004 Ehm, please sensei, can I use the 4nt to accomplish the task?I just found how to use it w/out installing it! geez I was really bored of cmd!anyway, about "the right way", I wasted so much time in my life trying to do things in the right way, with the result of completing very few things...now I seek a therapy of doing things "un po' a cazzo" which means ehr... as it comes, more or lessI'm unoccupied these months, but I wonder where do people who produce so much for the communities on the net find the time to do so many things!You are one of them for example!
GreenMachine Posted May 22, 2004 Posted May 22, 2004 4nt? I must be missing something. But now that you mention it, there are certainly 'Search and Replace" programs available, even for DOS. I may have to look into that myself: I am having a similar fight with the command prompt these days ..."un po' a cazzo" ? I think it French that might be like "N'import de quoi!" I've spent much to much time correcting thigs that where not done the right way the first time.
GreenMachine Posted May 22, 2004 Posted May 22, 2004 Too many trees to see the forest ...I've been lost in FINDSTR trying to fix up SATA driver INF files. This gsar routine sounds like what both of us need (though I did hack together a bunch of commands to achieve what I needed.)gsar110.zip
cyberchicken Posted May 24, 2004 Author Posted May 24, 2004 IF EXIST *.LOG DEL /F /Q *.LOGThi is very UNPOLITE from your xpc!My log was getting deleted halfway :\I used to mantain a variable holding the names of my temp files to do garbage collection at the end of procedures.Anyway, I'll rename my logfiles. (I do have variables to hold their names )
cyberchicken Posted May 24, 2004 Author Posted May 24, 2004 IF EXIST *.SIF DEL /F /Q *.SIFIF EXIST *.INF DEL /F /Q *.INFAlso this is very nasty!Why didn't you use the temp folder and variables for filenames!?
GreenMachine Posted May 24, 2004 Posted May 24, 2004 ****, gotta be careful with this Open Source stuff: you never know who's toes you are stepping on!OK, cyberchicken, riddle me this: If you have such good programming techniques, why aren't you putting your files in the CHICKEN directory: I never touch that!(Most) every line of that code has a "raison d'etre". You are invited to look, and hopefully learn, but I need to be paid quite a lot before I justify those reasons!That said, I did remove the wildcards, for a future release ...
BeenThereB4 Posted May 24, 2004 Posted May 24, 2004 Very few people can stand to be in paid "Support" positions for long, yet here is GreenMachine doing it for free with grace and humor! We can only hope that his patience holds out.
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now