Jump to content











Photo
- - - - -

Driver.cab


  • Please log in to reply
5 replies to this topic

#1 niche99

niche99

    Frequent Member

  • Advanced user
  • 235 posts
  • Location:Aberdeen, Scotland
  •  
    Scotland

Posted 09 September 2006 - 12:29 PM

Hi,

How do I expand a single file from a .cab, in this case driver.cab?

command line would be:

expand -r DRIVER.CAB -f:hid.dll .

What is the WinBuilder equivalent?

Regards,
niche99

#2 smiley

smiley

    Silver Member

  • .script developer
  • 905 posts
  •  
    Greece

Posted 09 September 2006 - 12:49 PM

Hi niche99,

youe can use the ShellExecute command .This is it's syntax:
ShellExecute,Hide,"Filename","Parameters"

So your command will look like :
ShellExecute,Hide,"expand","-r DRIVER.CAB -f:hid.dll "


smiley

#3 pscEx

pscEx

    Platinum Member

  • Team Reboot
  • 12707 posts
  • Location:Korschenbroich, Germany
  • Interests:What somebody else cannot do.
  •  
    European Union

Posted 09 September 2006 - 01:06 PM

As usually driver.cab has a path, you should not forget to include it in quotes.
This avoids long sessions searching the error.
ShellExecute,Hide,&#34;expand&#34;,&#34;-r #$q<path with spaces>\DRIVER.CAB#$q -f&#58;hid.dll &#34;

Peter

#4 niche99

niche99

    Frequent Member

  • Advanced user
  • 235 posts
  • Location:Aberdeen, Scotland
  •  
    Scotland

Posted 09 September 2006 - 01:27 PM

Hi,

What a friendly helpful bunch of people. :P

I am working on a way to add support for USB input devices (mice esp.). Idea is to use Paragliders hardware detection plugin and input.inf from an XP source. Has anyone tried this? Should I not bother as I may be barking up the wrong tree? :P

Thanks again for the useful replies.
Regards,
niche99

#5 TheHive

TheHive

    Platinum Member

  • .script developer
  • 4199 posts

Posted 09 September 2006 - 03:57 PM

Draugen was trying to create a script back in the Batcher days for this but I dont remember if he finished it. He did create one that wil recognize USB Mass Storage Devices I think. If you succeed, then there will be alot of appreciative people. Many of the new PCs dont recognise anything else other then USB. So if you create a Script that will recognize USB devices it will increase the compatablility even more. :P

#6 Draugen

Draugen

    Frequent Member

  • .script developer
  • 147 posts
  • Location:South of Heaven

Posted 09 September 2006 - 04:51 PM

If you could create a working USB input script that would be VERY nice. And i never got aroud to finishing any of the USB scripts i wrote. There is a working USB mass storage script somwhere IIRC.




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users