Forums before death by AOL, social media and spammers... "We can't have nice things"
|    alt.msdos.batch    |    Fun with MS-DOS batch files    |    42,547 messages    |
[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]
|    Message 40,940 of 42,547    |
|    Daniel to Daniel    |
|    Re: Question about powershellscript to b    |
|    23 Apr 14 15:38:17    |
      From: daniel-r@gmx.net              i directly run this batch in a cmd Window as administrator.              Thats what i find funny is, after status, one option will be done by the       batch.              isnt it possible to programm it like :              devcon status ""*DEV_4315" | find "running"       if "running" devcon disable "*DEV_4315"       else devcon enable "*DEV_4315"       end if              i thought, the switchin between on or of in the batch would not work       correctly.              Regards              "foxidrive" schrieb im Newsbeitrag       news:53578b14$0$7158$c3e8da3$76a7c58f@news.astraweb.com...              Please don't top post.              On 23/04/2014 19:02, Daniel wrote:       > Nope .. only once it works..       >       >       > These are the complete outputs with devcon status       >       >       > PCI\VEN_14E4&DEV_4315&SUBSYS_E003105B&REV_01\4&1A6B52AB&0&00E1       > Name: Broadcom 802.11g Network Adapter       > Driver is running.       > 1 matching device(s) found.       >       > and       >       > PCI\VEN_14E4&DEV_4315&SUBSYS_E003105B&REV_01\4&1A6B52AB&0&00E1       > Name: Broadcom 802.11g Network Adapter       > Device is disabled.       > 1 matching device(s) found.       >       >       > Only the first Line in batch will be interpreted.. if i switch the lines       > ,       > the first one ever will work              Try right clicking on the batch file and running it as admin.              The problem is with devcon - at least here in Windows 8.1 it runs in a new       copy of cmd and this       displays nothing in the console that the command is run from.              devcon /? |find "a"              unless it is run in an elevated cmd console.              --- SoupGate-Win32 v1.05        * Origin: you cannot sedate... all the things you hate (1:229/2)    |
[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]
(c) 1994, bbs@darkrealms.ca