devcon on windows 7 - remove drivers - scripting

I have a problem using devcon.exe in Windows 7 for the purpose of removing drivers, it worked fine in Windows XP. However, I can't remove the drivers using "dp_delete" and "Remove" in Windows 7.
Anyone has an idea why it might happen?
Thanks.

Download the “Windows Driver Kit (WDK) 7.1.0″ from MS, it is an ISO image several hundreds meg
Using UniversalExtractor (http://legroom.net/software/uniextract), extract the ISO to a temporary directory.
Again using UniversalExtractor, extract the install file "WDK\setuptools_x64fre.msi" to a temporary directory.
In that temporary directory you will find "WinDDK\7600.16385.win7_wdk.100208-1538\tools\devcon\amd64\devcon.exe". This devcon works fine under W7x64 Pro.
Along the way UniversalExtractor will prompt you with some warnings, just click OK.
(source)

Just an idea for another one that have the same issue and can migrate it: you can use wmic instead devcon. Its work better and it's Query Oriented Language (WMI)

Related

Does netbeans IDE contain a virus?

I was looking at installing Netbeans 8.2 for working with PHP, java, HTML, etc. for various projects. However, when I download the installer both firefox and chrome inform me that the installer contains a virus. Is this a real problem?
It must be a false positive.
The SHA-256 checksum matches with the provided one in netbeans.org
It's a false positive, plus you can also download a zip file from netbeans.org/downloads/zip.html
I downloaded and installed version 8.2 on windows 10 64 bit twice and the OS gave me this message both times but I ignored it thinking that the OS just must have had a problem with how the package was signed. Later Windows defender removed two trojans. I would say there is a high likely-hood that the installer really does contain a virus and the netbeans team should look into it.
I went through and downloaded all the version of NetBeans (using chrome) and didn't get any issues.
The website I downloaded them from is https://netbeans.org/downloads/
I have(had) the same issue, perhaps it is getting blocked because it contains Java.
As the OP knows, there is the option to right-click 'Unblock' it...
It's definitely a false positive; I also downloaded it from 'netbeans.org'...

Processing affects current directory of Arduino environment

I have my processing code in dev/processing and my Arduino code put itself in Documents/Arduino.
However, whenever I get into one environment, it changes the most recent directory for the other because Arduino is written in processing.
Is there any quick way to disconnect the two environments so that they don't use the same location for "most recent directory?" I don't know whether the mechanism is a file, a registry entry or what, but I'm on Windows 8.1
I am using both Arduino IDE as well as Processing 2.1.2 in Windows 7 environment. It doesn't change the directory.
Since you are using Windows 8.1 (which is recently released), you may face very weird problems as those softwares are not tested on those OS. You will find errors for even other softwares that are designed before Windows 8.

Problems with Octave on Windows 8: crashes after any error

I have installed (and re-installed) Octave 3 times on Windows 8, and I still can't get it right. The first and most obvious problem is that the prompt is missing; the screen only shows the flashing underscore that follows the prompt. This is not a major problem since the system properly responds to commands.
The major problem is that Octave crashes whenever it encounters a syntax error, instead of politely giving a diagnostic. This makes for extremely tedious software development.
Is there a way around this problem, or do we just have to wait for one side or the other to come up with an accommodation?
I encountered the same problem. I solved it by this:
create a shortcut to octave.exe, then right click->property-> change the "target" to something like:
C:\Program Files\Octave\Octave3.6.*_gcc*.*.*\bin\octave.exe -i --line-editing
Then it won't exit if u have syntax errors.
I don't understand the meaning of the parameters yet.
reference:
http://exciton.eo.yzu.edu.tw/~lab/?p=1121
Type octave --help can check the meaning of parameters.
-i also --interactvie, to force Octave interactive behavior.
Maybe Octave run at non-interactive mode at default, that means prompt should not be shown and it should terminate immediately when encountered error when reading a file.
I don't know if this will solve your problem, or if this is too bloated of a solution for you, but I use Octave on Windows 7 through Cygwin without any problems.
If you can't get Octave to run on Windows 8, you may consider running Octave through Linux via computer virtualization technology (virtual computer). Two, off the top of my head that you could use are VirtualBox by Oracle or VMWare Player
Once you have it installed, you can go to any number of sites that have pre-built Linux images that you can download and then run inside of Windows 8.X. Do a Google search of for 'Virtualbox images' or as 'VMWare appliances'. You can then download and use that to run the lastest version of Octave. I hope that helps.
Cheers,

Can't execute ISETool.exe from the command prompt (Windows 8)

I'm trying to use the Isolated Storage Explorer tool from Windows Phone SDK in order to retrieve data stored in specific Windows Phone Apps' IsolatedStorage and copy it to a folder that resides in my computer.
My computer runs Windows 8 Pro, and i have both the WP7 and WP8 SDKs installed.
The problem is that when i run the command prompt and insert a command line (such as the one below) i get an error that states:
"This app can't run on your PC"
How do i solve this? Thanks
Example:
ISETool.exe ts xd f8ce6878-0aeb-497f-bcf4-65be961d4bba c:\data\myfiles
I'd suggest you try using the Windows Phone Power Tools instead of what you are doing there. It will give you a nice UI to work with instead of trying to get a command line tool to work.
If you really want to use that tool then please post which directory you are running it from otherwise it is hard to tell why it won't work.

Autorun.inf on a usb can you get it to run a pdf?

I've done some research all over the net, I guess I am just looking for conformation.
Due to how Microsoft has put security on autorun in vista and above. Autorun from a usb no longer works. Correct? It seems like it will still bring up the options to run .exe but for some odd reason I cannot get it to run a .pdf. This site has suggested that I load up a pdf reader and run that and then call it to run the pdf. But a generic pdf reader would still have to go through the install prior to running it, something I am trying to avoid.
The other idea I came up with was cause of this specialty usb manufactures have stated that they their usb drives can autorun files because they are formated to be local disks.
So after some experimenting and doing this I converted my usb to a local to see if that would work and pasting the autorun.inf in there with the correct code...
[AutoRun]
shellexecute=mypdf.pdf
icon=mypdf.ico
label=mypdf
sadly it does't work
Also after thinking about it creating a local disk would only work with the driver software that I loaded up onto that usb... so say it is a 64bit and the client has a 32bit it wont run. (right?)
Can someone just confirm that there is no way to autorun a pdf from a usb? or even have it as an option to select from when it is plugged in for the first time. I cannot believe I have spent an entire day trying to just get autorun to work.
Thanks for taking the time to read this nub question
Try using a PDF viewer which does not require installation, eg:
http://www.snapfiles.com/get/sumatrapdf.html
From this site:
http://www.snapfiles.com/features/ed_usb_software.html
Using sumatraPDF portable installation you can launch that from the flash drive.
The way I did it is by creating autorun.inf with the following:
[autorun]
icon=autorun.ico
label=Label for Drive
action=Action Description
open=autorun.bat
And a autorun.bat file with the following:
start SumatraPDF.exe ../pdfname.pdf
However, if the user has autorun turned off it will not work and in Windows 7 and above autorun functionality for flash drives is restricted to label and icon only.