![]() |
China DOS Union-- Unite DOS · Advance DOS · Grow DOS --Union site: www.cn-dos.net Forum site: www.cn-dos.net/forum |
| Guest | Log in | Register | Members | Search | China DOS Union |
|
中国DOS联盟论坛 The time now is 2026-11-27 14:44 |
47,820 topics / 349,938 posts / today 0 new / 48,298 members |
| 其它操作系统综合讨论区 » Backing up drivers with pure script借助DevCon, compatible with Driver Genius (2008-01-17) |
| Printable Version 84,851 / 72 |
| Floor46 fastslz | Posted 2008-02-09 21:24 |
| 铂金会员 Posts 2,315 Credits 5,493 From 上海 | |
|
Oh, I'm also confused. You can't back up without plugging in the printer. You need to read the registry for offline backup of the driver.
|
|
| Floor47 ttj36 | Posted 2008-02-09 21:27 |
| 初级用户 Posts 37 Credits 80 | |
|
Haha, but this for /f "tokens=1* delims=: " %%b in ('devcon findall %%a\*^|find "\"') do echo "%%b"****"%%
Can be backed up, I generally use software to back up now, I don't know, can this be made more perfect, haha, [ Last edited by ttj36 on 2008-2-9 at 09:32 PM ] |
|
| Floor48 fastslz | Posted 2008-02-09 21:49 |
| 铂金会员 Posts 2,315 Credits 5,493 From 上海 | |
|
Two for loops generate two Devinfo.slz. Filter out the ones with the same name, and those are the driver parts that need to be offline. Next time when making changes, add this part of the code. Thanks for testing~
|
|
| Floor49 ttj36 | Posted 2008-02-09 21:58 |
| 初级用户 Posts 37 Credits 80 | |
|
But some people have many offline drivers in their machines. There's no need to do all of them; that's not asking for trouble, haha. Now it's already very perfect. As long as we can simplify the drivers a bit, just the main parts. Now back up the basic drivers. There are still a few that are not useful when installing the system,,,
[ Last edited by ttj36 on 2008-2-9 at 10:05 PM ] |
|
| Floor50 ttj36 | Posted 2008-02-09 22:31 |
| 初级用户 Posts 37 Credits 80 | |
|
for %%a in (USBPRINT) do (
for /f "tokens=1* delims=: " %%b in ('devcon findall %%a\*^|find "\"') do echo "%%b"****"%%c">>"%Temp:"=%.\Devinfo.slz" ) Your idea is indeed a good one. Just need to make an offline printer. Just add it. I mean, use the above code to back up the offline printer driver and add it. I don't know if it can be achieved. [ Last edited by ttj36 on 2008-2-9 at 11:25 PM ] |
|
| Floor51 fastslz | Posted 2008-02-09 22:45 |
| 铂金会员 Posts 2,315 Credits 5,493 From 上海 | |
|
Thanks for the test~
USBPRINT added in building 1 code |
|
| Floor52 ttj36 | Posted 2008-02-10 19:04 |
| 初级用户 Posts 37 Credits 80 | |
|
The "safely remove USB drive" doesn't work. As soon as I use it, my mouse stops moving. Haha, but the mouse is a USB interface.
|
|
| Floor53 fastslz | Posted 2008-02-10 19:32 |
| 铂金会员 Posts 2,315 Credits 5,493 From 上海 | |
Originally posted by ttj36 at 2008-2-10 19:04: There is a better solution for this post http://www.cn-dos.net/forum/viewthread.php?tid=37059&fpage=1 |
|
| Floor54 lpclimber | Posted 2008-03-14 12:47 |
| 初级用户 Posts 85 Credits 168 | |
|
That's extremely powerful, thank you the LZ for sharing!
|
|
| Floor55 chishingchan | Posted 2008-03-17 12:32 |
| 银牌会员 Posts 538 Credits 1,284 | |
|
Execute this batch:
The following corresponds to the manual installation of the driver batch (for your machine, related to PCI, USB and main oem?.inf): @echo off Actually, after a new XP system is installed, the manually installed drivers are only as follows: ;以下对应 Windows\inf\oem1.inf(显卡) Seek a batch that only backs up manually installed drivers (related to PCI, USB and main oem?.inf for your machine), thank you! |
|
| Floor56 AnyKey | Posted 2008-04-10 18:49 |
| 新手上路 Posts 1 Credits 2 | |
|
Good stuff
|
|
| Floor57 stance | Posted 2008-04-21 16:52 |
| 初级用户 Posts 46 Credits 64 | |
|
That's really amazing!!!
|
|
| Floor58 sadamu9527 | Posted 2008-04-23 13:50 |
| 初级用户 Posts 28 Credits 55 | |
|
Not bad. A master among masters. Strong.
|
|
| Floor59 jfpx | Posted 2008-04-29 16:11 |
| 新手上路 Posts 1 Credits 2 | |
|
Great, can it be downloaded?
|
|
| Floor60 Cocactus | Posted 2008-04-30 11:34 |
| 新手上路 Posts 2 Credits 4 | |
| Prev 1 2 3 4 5 Next |
|
[ Contact the Union admin team -
中国DOS联盟 -
Standard version ] Sponsored by ifanr Inc | © 2001–2023 |