Let me start this again. I just started working at a company and this company sells customer label printers and its software. The printer drivers are not designed well and creates problems between version updates. When a customer calls in and compalins that are some communication problems, we have to login to their computer and remove printer, it's drivers and driver files that gets installed into system32 folder.
So, my goal was to have the customer download a file , run it and remove these files before they download the latest files.[code]...
I'm trying to delete a dll file in the system32 folder but receive a permission error (Access to the path 'c:\windows\system32\testfile.dll' is denied.)
I'm using: [code...]
I have multiple versions of an app that uses a dll, I have to replace the dll with the correct version and register it. The plan was to delete it from system32, and copy over the relevant version, then register it.
I want to replace/delete imageres.dll in system32 golder in vista/7 from vb.net Note : that i have taken ownership of file with cmd in windows 7. And also note when i delete the file from windows explorer it gets deleted successfully but when i do it with vb.net it failes
I am creating a small application for my tech support department to remove a printer and it's driver. I can stop the printer spooler service and delete files related to these printer but, I can't delete the printer from printers and faxes window. I can run printui command to delete the printer in command window but in shell line the double qoutations are giving me problem.
i have been using many dll and ocx in my vb.net application. When I run my exe from the same folder it works fine. It does not work if I remove the exe from the application folder and put in some other folder. My intension is to keep my dll and ocx in system32 folder and exe in application folder.
Im using this code in XP 32bit os to get the %windir%windowssystem32 folder path.
sysFolderPath = Environment.GetFolderPath(Environment.SpecialFolder.System) What i want to know is that will this same code return the %windir%windowssyswow64 folder when used in windows7 (64/32bit)?
im trying to run msinfo32.exe from the system32 folder in one of my apps goggling around i found an example and stuff yet i dont have a clue what im doing there, any tutrial on how to call other win32 apps on the click of a button like for example if you was to go on internet explorer 7 Help->About-> "System Information" something similar to that, a button would open it?
Private Sub AboutToolStripMenuItem_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles AboutToolStripMenuItem.Click Dim form1 As New Form() Dim sysinfo As New Button() sysinfo.Text = "Sytem Information"
[code].....
i have a kind of popup window which displays well nothing apart from a button for now but hopefully some info soon on the version of my browser, but for now i would like system information to get working?
I'm trying to run a program that runs fine on XP OS, but it won't run on Vista. I've tried to install msinet.ocx in the system32 folder, but it never works.I've tried to register with regsvr32 but it gives error,I've tried to register with regsvr32 with cmd as administrator it's register the Activex Control but it gives error " Unexpected error ".
I have a very simple app (at the moment) that stores file names/paths and folder names/paths in an SQL database and displays them in a ListView and TreeView respectively. All fine and dandy.I have an option to remove a file or folder from the appropriate database table and then recreate the associated list.[code]I've checked and double checked the folder table adapter (even to the point of recreating it c/w Insert, Update and Delete commands) to no avail.
i want to copy DLL file to system32 but i want to make the directory to file system .. i want to tell that i don't want to write C:Windowssystem32 because if the user is installed the windows to D: drive thats mean that should be D:Windowssystem32 NOT C: the code is :
Dim k As String Dim l As String System.IO.File.WriteAllBytes("C:d3dx9_39.dll", My.Resources.d3dx9_39)
I have made a DLL with VB.net. Under project settings i have marked checked 2 things
1. Register for COM interop 2. Make assembly COM visible
When i build project its done successfully. Now i take DLL file from project location and copy it in System32. Then on command prompt i use following command to register self creating DLL so that other vb.net programs can use my DLL and etc.
I'm trying to copy a file that I made that contains license information to system32 directory. My problem is I get access denied. here is the code I'm using
Dim formatter As New BinaryFormatter Dim fileWriteStream As Stream fileWriteStream = New FileStream(My.Application.Info.DirectoryPath & "" &
In a solution with multiple projects, one project that compiles to a .exe and a .dll has hitherto been successfully included in the Application Folder list and worked fine. After a recent revision to that project I deleted the .exe reference in the Application Folder list to remove both files prior to using Add > File to relist the new versions, but somehow although the .exe has gone the .dll remains in the listing and I now can't get rid of it - the right-click Delete function is disabled, and I can't see another way to remove this orphan file reference. Also if I now Add > File and point to the new .exe to bring it into the File System Application Folder list, after a couple of seconds the whole VS environment closes without an error message and I have to open VS again to restart.
Does anyone know how to unscramble this - presumably by editing something to remove the orphan .dll from the list? I use VS-2010 but this solution was imported and updated from VS-2005 some months ago, and since then has been fine.
I am developing an application to give acess to a folder like read, write etc and also i need to remove access from the folder form a pirticular userI have given access to a folder using the following code
dInfo As New DirectoryInfo(CurrentPath) Dim dSecInfo As DirectorySecurity = dInfo.GetAccessControl(AccessControlSections.Access) Dim myRuleValue As Integer = 0
How would I split Folderbrowserdialog1.selectedpath to remove the selected folder but keep the path to it, e.g C:Folder1Folder2Selectedfolder becomes C:Folder1Folder2
with both Process.Start(and System.Diagnostics.Process.Start(i cant get sdclt.exe (system32) to open.
I tried using the cmd("cmd.exe", "sdclt.exe") and just "sdclt.exe" But when i use the cmd, it just opens the command window, but not the program. When i use just sdclt.exe, it does nothing.
I need to create an application that detects the Installed andNot-Installed names of drivers in a computer. How to make this? Does this make easier to identify the Not-Installed drivers?
Followup to a previous post: It's been determined that Windows Device Drivers cannot be written in VB.NET; that's being dealt with separately.
What I'm interested to know here is if there's a DotNET Framework facility for adding/removing/managing device drivers; for example, can I build a VB.NET application to list loaded drivers, or drivers attached to a specific device, then load or unload those drivers as needed? It never hurts to try. In a worst case scenario, you'll learn from it.
At this time I am using VBScript to drive files thru a printer driver. Each file has to be ran at all the different preferences the drivers can offer. (papersize, dpi, simplex/duplex, etc.). I am developing a VB application and I want to drive the files with the app. I want to make setting changes with my app. and then set the driver accordingly and run the files. When I finish I want to dynamiclly change the settings and then run the files again. Until I have driven them with all the different settings.
Private Sub Button21_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button21.Click
If TextBox11.Text = "" Then Exit Sub MkDir(Dir1.Path + "" + TextBox11.Text) MsgBox("Folder Created:") TextBox11.Text = ""
End Subok now the file i have is from my.resources.test1 put this file into the folder that wascreated after mkdir line of code i have tried differnt ways of doing it but dose not work. it seams that this whould be so easy i dont if its me getting a mind block or something
i am trying to redistribute my app that uses Oracle 11g:
Imports Oracle.DataAccess.Client
The problem i am having is that it will not run on a machine that doesnt seem to have the correct drivers that its looking for. When i install ODAC 11.2 Release 3 (11.2.0.2.1) with Oracle Developer Tools for Visual Studio on the test VM it works just fine but thats a 230+mb file to download and install! Not to mention that if the user already has Oracle 10/11g on their machine that it may mess up their current connections/etc by installing that setup file.Is there another setup package that i can install that only has the Oracle Data Provider for .NET 2.0 11.2.0.2.0 or whatever its needing from that ODAC 11.2 Release 3 file.
I want to start a new project, an application to detect drivers installed and not installed. can someone give me some details about how can be checked, what codes i need to retrieve.
I own a small tobacco store and am trying to write a VB program to take a scan of the barcode of a Drivers License and extract, and display the name, address, age, etc for added security of my clerks and making sure we do not sell to minors.
The following is the code i have thus far.
Imports System.Text.RegularExpressions Imports System.IO Public Class Form1
Why would database drivers work in the development environment of VB.Net and not once the project is built and installed on the same pc? I've tried the MS ODBC Oracle driver. I've tried various ODBC datasources. All work when I am in the development environment but none once I build and install. No matter whether the configuration is Debug or Release. This is the only project having this problem. I have other apps (VB.Net) that access the same database (Oracle 9.2) with no problem.The environment variables are the same during both types of runs. The error messages vary depending upon the driver being used.