Any Way To Kill Driver (SYS File)?
Jun 25, 2009Is there any way we can kill a driver (.sys file)?
View 10 RepliesIs there any way we can kill a driver (.sys file)?
View 10 RepliesTrying to figure out if there is anyway built into windows 7/Vista/XP and/or Dpinst to verify that a driver is installed? I created a program that uses DPinst to install a driver and now I need to figure out how to tell the user that it is safe to close the program once the driver is install as the driver takes longer on some machines to install. Would anyone know how to get this to work?
View 7 RepliesI am trying to import a TAB (NOt comma) delimited text file into a DataGridView. The following code works fine if I have a comma separated file. All I have to do is change the FMT to "Delimited".It just does not work with FMT=TabDelimited. All columns are read into single datatable column. The text file is ANSI text and I have double checked to make sure Tabs are tabs and not spaces, even exported a sample Tab Delimited file from Excel.Can this even be done using Text Driver? [code]
View 2 RepliesI seem to recall that there is an API which will return the INF file associated with a device driver but I'm drawing a blank. I want to get the path to the INF File, File Name Section Name and File Date.
View 17 RepliesI have a scanned driver license file in bmp format,is it possible to read license information in vb.net.
how to read drver license OCR details?
Public Function RsReDir()
'function to restart dns redirector - working as of 12-11-08'
Dim plist As Process() = Process.GetProcesses()
[code].....
Public Function RsReDir() 'function to restart dns redirector - working as of 12-11-08'
Dim plist As Process() = Process.GetProcesses() 'Get and parse list of processes to plist'
For Each p As Process In plist 'parse each entry in plist as p process'
Try
If p.MainModule.ModuleName.ToLower() = "dnsredir.exe" Then p.Kill() 'If module name of process matches "dnsredir.exe" then kill p'
Catch
[code]....
i would like to kill and restart dnsredir.exe file but the code doesnt' seem to work?
I am making an updater that downloads some files from a webservice and copies them to a directory, overwriting old files.
It works ok, but what if a user for whatever reason has opened a file. It will throw an error, because the file is in use.
Is there a way to determine which process is using the file? Then I will be able to kill it.
If I want to abort or end this operation, myprocess.kill() does not work I'm thinking that the Cmd box gets killed but tsmuxer remains alive to fight another day.
myapp= joinstreams.cmd which is C:\tsmuxer.exe "C:\workSeamM2TS.meta" "C:\workSeamM2TS.m2ts"
Dim myProcess As New Process()
myProcess.StartInfo.WorkingDirectory = Application.StartupPath[code].....
I need to create a driver that can be installed as a printer and instead of printing to a physical printer it needs to print to a text file. I have no idea how to do this. I have searched for an answer on these forums but so far I haven't had much luck. I know it isn't easy to create a driver in VB but I don't know if this is technically a "driver" since it isn't interfacing with actual hardware.
View 6 RepliesBit of a long shot but does anyone know if it is possible (I said possible, not easy ) to create a file system mini filter driver in .NET? I'm assuming not but I don't really know of any technical reason why... just that every single example on the interwebs is C++.
I realise it would take me a very long time just to convert all of the functions and structures required to .NET before I even got started on the actual functionality of the filter driver itself but theoretically is it possible?
I would like to write a sub routine to kill an executable file called 'dfsvc.exe'. I'll call this subroutine when I exit my application to kill this file. When I exit my application this file is still running and takes around 15 minutes before it disappears. I would like to kill it to remove the delay.. The following code below doesnt work..
[Code]...
I am writing a simple program that I'm going to use to end a process and then delete a folder with its contents but, I am running into some errors when I try to delete an .dll file using Kill. I would have figured this out on my own but its being weird.
1. If I run the .exe it doesn't delete it and gives me and error
2. I i run the .exe as administrator it doesn't delete it and gives me an error
3. If I run visual basic 2008 as Administrator and then execute the program it works.
4. If I try and execute it again as Administrator under Visual Basic it doesn't work and says I don't have sufficient access.
What I am trying to do is End a Process so that I am able to delete the folder, the folder contains and .dll which is being stuborn and saying I don't have sufficient access to do this.
Kill
Public Class Form1
Public Sub killprocess(ByRef strproccesstokill As String)
Dim proc() As Process = Process.GetProcesses
[CODE]...
My app is designed to work on XP & Vista but I get an error on Vista but not XP When I want to kill/delete or move a file from an external drive I get an external error message System.UnauthorizedAccessException: Access to the path is denied.
full error text:
************** Exception Text **************
System.UnauthorizedAccessException: Access to the path is denied.
at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
[code]....
I'm currently doing a project that includes access 2010 My question will be what driver can I use for an access 2010 *.accdb type file? For a *.mdb it works perfectly well with
ConnString ="Driver={Microsoft Access Driver (*.mdb)};Dbq=" & Application.StartupPath & "\CITSDB.mdb;Uid=Admin;Pwd=123;"
But, when I changed the mbd to accdb:
ConnString ="Driver={Microsoft Access Driver (*.accdb)};Dbq=" & Application.StartupPath & "\CITSDB.accdb;Uid=Admin;Pwd=123;"
It resulted in errors:
ERROR[HY000][Microsoft][ODBC Microsoft Access Driver]Could not find file '(unknown)'.
ERROR[IM006][Microsoft][ODBC Driver Manager]SQLSetConnetAttr failed
ERROR[HY000][Microsoft][ODBC Microsoft Access Driver]Could not find file '(unknown)'
And then it shows me that my code for
If dsLogin.Tables(0).Rows.Count = 1 Then
IndexOutOfRangeException was unhandled
Cannot find table 0
I knew it must be the driver but I don't know what accdb driver I can use for the connstring.
I am looking for a free open source .Net based (prefer C#) pdf driver. where I can download one?
View 1 RepliesIm working with a CD722UN Customer Display for our POS application. it comes with a USB2.0 connection and a installation package containing a driver etc. now, for my application. how should i do when i want to access this driver? at the moment i'm using the "CD722UN application"s .dll path but that can wary from clients OS etc. [Code] my first thought was to first check if there was a device installed in the device manager and somehow use the driver from there? [Code] what is the best solution?
View 1 RepliesI'm pretty sure the answer is no but I am curious, is it possible to write a driver in .NET code? I am talking more software driver here rather than hardware driver (ie something like a file system filter as opposed to a driver for a printer or something).
View 3 RepliesIs there a tutorial on how to use VB.NET with mongodb?
It uses C#. However, I am used to VB.NET. Can the C# driver interact with VB.NET?
I'm starting to get into the microcontrollers and I was wondering if anyone had any experience using visual studio and/or visual basic writing drivers and application software for USB Devices and using different microcontrollers from Atmel and Microchip?
If you know of any good websites or anything out there that would get help get me started that would be great.
Is there a way to get a list of ODBC drivers that are installed on a Windows XP machine from .NET?
I basically would like to see (in .NET) what is in:
Control Panel->Administrative
Tools->Data Sources (ODBC)->"Drivers"
Tab.
I have build an application in VB.NET (3.5) wich connects to an oracle DB. I works perfectly on my pc. However. When I install the app on a pc without oracle it will not connect to the DB on the server. Do I have to install somekind of driver on the client pc?
View 4 Replieshow to install a ODBC driver using vb.net windows application ?
View 3 RepliesI am working on a project that needs to using an activeX driver (libaray), a .ocx file. The driver have some properties and methods. I added the reference and have a new instance. When I try to put values to the properties, I got error messages from the driver.
Imports CBMCOMMLib
Public Class Form1
Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
[URL]
MaxTraces is one of the properties. Am I using the library correctly?
I have a requirement to convert a word file to PDF and to display it to users.It needs to be in PDF to prevent users making changes to the document.Only a few of the PCs which use the software have Word 2007 installed, most have Word 2003 but all have a third-party printer driver CutePDF installed.I would like to automatically convert the file to PDF using CutePDF without the user having to open a print dialog. In fact I don't want the user to have to do anything at all except request to view the document which will set the automatic process in motion.
View 2 RepliesIīm using Windows 7, 64 Bit and Visual Basic form VS 2010 to develop an application.
I want to remove a HID driver with the Devcon.exe tool. Using the console (cmd.exe) with the following command, there is no problem. The driver ist removed immediatly.
D:devcon remove =keyboard "HIDVID_1784*"
If I try the same from the application with:
Shell("C:WindowsSystem32cmd.exe /k D:devcon remove =keyboard ""HIDVID_1784*""", AppWinStyle.NormalFocus, True, 1000)
or:
process.StartInfo = New ProcessStartInfo("C:WindowsSystem32cmd.exe", " /k D:devcon remove =keyboard ""HIDVID_1784*""")
process.Start()
then devcon returns the message:
"The 1 device(s) are ready to be removed. To remove the devices, reboot the system."
and the device is not removed or disabled, and of course, I donīt want to reboot the system.
Does anyone have the same problem or even better can tell me, how to solve this problem, so that the driver ist immediatly removed?
So - we are FED UP with our medical records packaging (document imaging) system and want to create a simple filing interface for our scanners to use in VB. Part of this deal is getting VB to interact with a TWAIN Driver.
There is some code out there for ASP.NET and C# - does anyone know of a VB.Net based code I could look at?
I have spent part of my day trying to recreate the ASP into VB but the calls are just different enough to get interesting.
I'm working on a security type program that has a system tray that starts with windows and a driver to prevent it from being closed. Any ideas where to start?
View 3 RepliesI'm receiving this error from the ODBC SQL Driver as mentioned :- ERROR [07002] [Microsoft][ODBC SQL Server Driver]COUNT field incorrect or syntax error.
Here's my VB
CODE:
And this is the stored procedure i'm calling :-
CODE:
After some digging around both here and the www in general I have plucked the following code to allow me to install a non listed printer driver to my XP machine. Problem is I am unable to get it to function properly.
The first section of the code creates the port every single time with out fail on any machine that I have tried but doesn't seem to function with the addition of the drivers.
I am trying to install HP driver that have been downloaded for HP site (extracted into C:emp1hp3035 ). I am also trying the same with a HP 4730 printer but neither work. I know i'm over looking something but what??
from most of the sites I need both the .ink and the .dll references but the HP .exe when extracted give a scatter of .cab files. I have tried to extract the EN one and use the dll from there still no joy (this it the .dll reference below.)[code]...