Windows 7 Forums

Welcome to Windows 7 Forums. Our forum is dedicated to helping you find support and solutions for any problems regarding your Windows 7 PC be it Dell, HP, Acer, Asus or a custom build. We also provide an extensive Windows 7 tutorial section that covers a wide range of tips and tricks.


Windows 7: [BSOD] USB hub

11 Feb 2009   #21
NosferatuX

Windows 7 Build 7048 x64
 
 

Quote   Quote: Originally Posted by Jag View Post
Ok, running it in WinXP compatibility mode did the trick: now it doesn't open a new window and i can read what is has to say . I had to add " signs to my command line.

I made the batch file (i didn't understand the path c:\Program Files\, i had to change it to c:\Progra~1, oldskool ) and it works.
Then i made a script the way you told me and it works as well. I added it to the logg off scripts.
But now when i logoff, i see an error message very shortly which i cannot read. And the device isn't unloaded.

I tried finding the error in a log file, didn't find it. But i don't really where to look for it (i don't know that much about Windows).
That's great news! We have progress

About the error, let's move back a bit. Have you tried running the script independently? If you are able to run it on its own and the device is unloaded, then there's nothing wrong with the script. Expect windows security flags and try to run it as administrator. If you're unable to successfully run the script on its own, just a few "path" tweaks might do the trick. Yes, i like the Progra~1, that's cool


My System SpecsSystem Spec
.
19 Feb 2009   #22
Jag

Windows 7 x86
 
 

Sorry for the late reaction.

The script works fine when i run it. But i don't know how to run it as administrator. I don't see this option in the properties.

But when i shut down, an error appears (for a very short time). And the device isn't removed since it still crashes unfortunatly.
My System SpecsSystem Spec
19 Feb 2009   #23
NosferatuX

Windows 7 Build 7048 x64
 
 

Quote   Quote: Originally Posted by Jag View Post
Sorry for the late reaction.

The script works fine when i run it. But i don't know how to run it as administrator. I don't see this option in the properties.

But when i shut down, an error appears (for a very short time). And the device isn't removed since it still crashes unfortunately.
Right, my bad, you can't run a script as administrator it already runs with elevated privileges.

I've tried to search for programs that run tasks during shut downs and tested several of them and was not satisfied with the results.

Here's another workaround for you

Instead of running the script at logoff, create a shortcut of the .bat file on your desktop (or anywhere you'd like). Now in your .bat file, add the following at the very last line;
Shutdown /s

This will then be executed after the previous command completes.

Now you can then go customize the icon and make it like a Shutdown button and place it anywhere you like and you just click on this shortcut to shutdown your computer.

If you want to add more shutdown parameters, you can open a command prompt and type shutdown and you'll be shown what else you can do with it.

If you try this route, don't forget to remove the script in the logoff policy.

Cheers
My System SpecsSystem Spec
.

23 Feb 2009   #24
Jag

Windows 7 x86
 
 

Ah, i was afraid it would come to that . That would be a workaround for shutting down and restarting manually, but it isn't for the most common way a crash occurs: the computer going in standby (S3 or S4). And since it's a laptop, it would be nice to be able to use stand by.

Right now my work around is to not use the usb hub. It's unfortunate that i have to use a seperate WLAN dongle (i can't activate the internal WLAN usign the function keys). But most of the time two usb ports is enough.

Thank you for your good help!
My System SpecsSystem Spec
23 Feb 2009   #25
NosferatuX

Windows 7 Build 7048 x64
 
 

You're most welcome

I'm sure that once Windows 7 goes mainstream, all these will soon be properly resolved.

Cheers
My System SpecsSystem Spec
Reply

 [BSOD] USB hub




Thread Tools



Our Sites

Site Links

About Us

Find Us

Windows 7 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 7" and related materials are trademarks of Microsoft Corp.

Designer Media Ltd

All times are GMT -5. The time now is 11:25.
Twitter Facebook Google+ Seven Forums iOS App Seven Forums Android App