Release An External Drive After It's Been Accessed By My Program?
May 23, 2011
The VB.Net program in question creates several files, adds them into a zip file (using DotNetZip), and saves the zip file into a given directory (which the user chooses). This comes out just fine. But when I use it to save directly to my USB flash drive, I can't eject the drive without shutting down the program first.I've tried disposing the zip object (from the DotNetZip library), doesn't work. I also tried setting FileIO.FileSystem.CurrentDirectory to somewhere else on the machine, still no.
View 1 Replies
ADVERTISEMENT
Jan 8, 2011
i am trying to make a program where it copies files to a certain external drive, but i cant figure out how to make it to where you enter your drive letter for the external drive and it copies it.
View 6 Replies
Dec 18, 2010
The drive is connected via USB and the problem I'm having is that, periodically, while my code is executing, the usb drive seems to disconnect and reconnect. (Nothing to do with the program, but the drive itself).I want to find a way to prevent these temporary drive reconnects from interrupting my code. IE, i want to insure that whatever read or write that is requested is actually executed even in the case of a temporary drive interruption.
View 1 Replies
Jan 23, 2010
I have an App where I update data on a USB Flash Drive and I'd like to add a button that would make it "safe to remove the drive." Is there vb code to execute or emulate the "Safely Remove Hardware" icon on the taskbar?
View 1 Replies
Apr 7, 2009
I am doing a little project to get better at my Vb while I am outside of class and I am making a launcher that lanuches my games from my external harddrive. Now I want it to auto find what the Harddrive is mounted to Like in my Code below this is what I have so far:
If CheckBox1.Checked = True Then
Process.Start("u:\Games\Generals\generals.exe")
ElseIf CheckBox3.Checked = True Then
Process.Start("u:\Games\Counter-Strike Source\Launcher.exe")
ElseIf CheckBox5.Checked = True Then
[Code] .....
But Instead of having to go into ym actual Code and Changing it from U: to what ever my drive has mounted to on another computer and have it automaticly find what its mounted to and update my code accordingly.
View 1 Replies
Mar 11, 2010
I am presently using VB2010 to develop charting application. I have noticed that whent he applications are developed on my hp dv7-2270us notebook and stored on an external harddrive, if these same applications are then opened on my dell latitude d610, i will recieve a corrupted external harddrive error. Usually this can be repaired with check disk.
View 1 Replies
Oct 27, 2010
I'm interested in password protecting my external hard-drive. i know there is already programs that can do this but i want to make my own.
make a program that would at start-up pop up and make the user put the password if not then the partition will be set to hidden. also would be a good idea to set the partition hidden until user puts password.
View 1 Replies
May 16, 2009
Recently, I was experimenting with accessing classes within other classes. From an earlier post, I learned some things about class architecture, but don't think I understood it as well as I HOPE I do now.
I came to the following assessment:If you require an external class to be accessed internally within ANOTHER class, there must be an internal "placeholder" for the immediate values contained in any instance of the external class. That internal placeholder is a structure declaration that has the same architecture as the external class, AND the names of the external class and the internal structure must be identical.
View 5 Replies
Jul 8, 2011
I'm working on an app that should be able to read files from an External Hard Drive or even an iPhone or iPod. I'm a beginner so it would be great to keep it simple :) I suppose I should use the SerialPort class? But I'm not sure and I couldn't make it work.
View 7 Replies
Apr 9, 2009
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]....
View 15 Replies
Dec 4, 2009
Computer.FileSystem.FileExists(Environment.GetFolderPath(ProgramFiles) to get the Program Files directory in my application. The problem is that when running on a 64 bit version of Windows 7, I am getting the Program Files (x86) directory, not the 64 bit directory. As far as I can tell, everything is compiled as 64 bit.This code is actually in a DLL that is accessed during the installation of the program.
Is there any way to get the 64 bit path?
View 2 Replies
May 3, 2012
How I can find program when accessed to folder... I know it show what file created, but I wish know WHICH program accessed to folder not what is created in folder !
View 14 Replies
Jan 9, 2010
I need to manipulate an external edit control from with in my program. (IE: Get new text whenver it's being enter into edit control and parse the infomation in my program).So, is it possible to create an edit control in my program that base on the handle of an existing application using win32 api or something
View 4 Replies
May 3, 2009
So I have my form, I add one combobox (combobox1) and a button that says "Launch..."Button 1's
Process.Start(ComboBox1.SelectedItem)
When you select a program from the combobox (combobox1) and click launch, it launches that program, for example, cmd.exe (command prompt) when I click the button, it launches the command prompt, but if I select a game (for example chess.exe, for vista), it says it can't find the file, this is because the search for the file is only: WindowsSystem32, how can I change that? OR, how can I add a reference that searches the WHOLE Disk, not just WindowsSystem32?
View 6 Replies
Feb 27, 2010
im having trouble getting my program to call an external application. the only thing is that im trying to get the path from a setting
my.settings.e1p
so far i've tried this
System.Diagnostics.Process.Start(My.Settings.e1p)
View 5 Replies
Jun 29, 2009
I am using VB 2005. I am trying to open an external program, make it invisible, and then control it. It is fine if the external program shows up in the Windows Task Manager, but I don't want anything showing up in the Windows taskbar. I already know how to open the program I want to use. For that I am using:
Code:
System.Diagnostics.Process.Start("C:Program FilesSomeProgram.exe")
[code]....
View 12 Replies
Dec 25, 2010
I start an external Program using System.Diagnostics.Process.Start I want monitoring when a user has started a new file, saves or opens another file and get the info of the file in current process
View 1 Replies
Jun 8, 2009
So, I'm using shell to start up an external application at the press of a button, but the application requires several other external files with it in order for it to work. How could I make it work? Note: I'm a newbie
View 7 Replies
Apr 4, 2012
i am trying to get some text form an external program. Currently i am using this code:
Dim lngHWND As Long
Dim lngHWNDF As Long
Dim lngID As Long
[Code]....
I am getting values for both the lngHWND, lngHWNDF and the lngChild. However, they are only values (numbers) and not the text itself.
Here is an image of the program i am trying to get the text from:
How can i go about getting the text from those items it finds?
View 1 Replies
May 31, 2010
i wanna know how to launch an external program as administrator Like tick a tick box and it launchs the program as admin if you tick it and push the button.
View 5 Replies
Oct 11, 2009
What I'm wanting to do is gonna sound pretty strange. I play a game called Wonderland Online. Usually while playing, I will have between 3-4 instances of the game going at the same time, each instance running a different character. Also, I will have open another program that I wrote that helps me figure out what I need to manufacture a certain item in the game. The running game is an 800x600 window, and I have all 5 of these windows open at once, where I am constantly moving things around, minimizing and maximizing.I want to create a app that would basically be a frame for the game. Creating the frame would not be hard, but this is the first time I have tried to get an external EXE to basically run inside of my program. Is this even possible? And if so, I would imagine I could run multiple EXEs and flip between them inside my frame. I could integrate my manufacturing program into the frame, as well as control which instance of the game is visible inside the frame.
View 1 Replies
Jan 26, 2010
Some time ago I saw a code to host an exe from within a visual basic form, acting as its parent. How would I go about doing this in vb.net? I havent programmed in ages, but recently have gotten an interest again in order to complement
View 3 Replies
Aug 4, 2011
i have an external program, i got his and w.e else is needed.... i want to know how do i tick a checkbox from my vb.net program. to this external software. to tick this checkbox and then the checkbox will do what it supposed to do, and not just change the gui to ticked without doing a thing,
View 2 Replies
Apr 21, 2009
I am using this code to open an Outlook 2007 application.
Dim psInfo As New System.Diagnostics.ProcessStartInfo("C:ProgramDataMicrosoftWindowsStart MenuProgramsMicrosoft OfficeMicrosoft Office Outlook 2007.lnk")
psInfo.WindowStyle = System.Diagnostics.ProcessWindowStyle.Minimized
[code].....
View 6 Replies
Mar 5, 2010
I've been doing bits of research, and im yet to find a direct way to be able to get the processID of a window like "notepad.exe",
View 5 Replies
Dec 25, 2010
I start an external Program using System.Diagnostics.Process.Start I want monitoring when a user has started a new file, saves or opens another file and get the info of the file in current process
View 2 Replies
Jan 6, 2010
I'm looking for a way to monitor drive activity using Visual Basic 2008. I want to create a small utility to simulate an LED in the system tray for drive read/write activity. I've found several such utilities that do this, but they all lack one thing or another, or they are over bloated with stuff I don't want or need, etc. I want to write my own so it will be like I want it. To get started, I need to know how to monitor drive activity.
View 3 Replies
Sep 19, 2009
Is there any way to do so? I know its possible to programmatically eject/retract the cd drive SOMEHOW, cause Roxio does that when it prompts me to insert a disk.
Either c# or vb.net is preferable, but c and c++ are okay too as a last resort.
I am nearly positive there is some way to do this, I just don't know the methods to call.
View 2 Replies
Jul 21, 2009
Is it possible to read the serial number of a USB drive using VB.
View 3 Replies
Jan 11, 2012
I recently reformatted my computer and now that I try running a program I made beforehand, I always get an UnauthorizedAccessException when the program tries to access the D drive. How do I make it authorized? I tried changing the security settings for the D drive but that wasn't really much help.
View 1 Replies