Low Level Disk I/O

Feb 25, 2009

I want to do low level disk I/O using Visual Basic 2008.Particularly, I want to do track/sector read/writes to a disk (or equivalent hardware)Also important is to discover number of tracks/sectors available.

View 1 Replies


ADVERTISEMENT

Application-level KeyUp/KeyDown Events (not Windows Form-level)?

Apr 1, 2012

I am creating an Excel add-in written in VB.NET. I would like to bind KeyDown and KeyUp events to the spreadsheet to record when the user presses and releases the arrow keys while navigating the spreadsheetIdeally, these events would be built into Excel alongside the native SheetActivate and SheetSelectionChange events, for example. Alas, they are not.

View 1 Replies

What's The Difference Between Dim On The Member Level And Static On The Procedure Level

Jan 6, 2010

In Visual Basic 2008, there's two different ways that I know of to accomplish the same thing:The Dim on the member level:

Dim counter1 as integer = 0
Dim counter2 as integer = 180
Public Sub SampleSub1()

[code].....

View 1 Replies

Top Level SQL Table Row - Save The Top Level Automatically?

Mar 18, 2011

I have created a simple program which uses a two tier structure of SQL Tables.At the top level, one record holds the date of the activities and linked to it using its primary key as a foreign key, three subordinate tables hold time stamped records.The issue I have been unable to solve is that before adding any of the lower level records for a given date, a newly added top level record must be saved to the database.Doing this manually is simple - but can I rely on my users to remember to do this before they start plugging in the lower level data?I thought not, so I am looking to save the top level automatically.I've failed miserably but I refuse to believe that it's not possible.

View 14 Replies

Multiple Level Of For Each And Linq In Each Level

Feb 12, 2011

I have multiple level of For Each and in each level, i have a Linq that is the 'In' criteria as in:

[Code]....

It will go inside each for (because the value is not nothing), however, it will only loop (next) in the very inner 'For Each t In tFor'. After it is finish inner loops, the outer Fors' or Next will not execute... even thought there are more than one values in that 'In'... like 'sFor' or 'fFor'. i've noticed while debuging, while break at the for (for example 'sFor', before stepping in), i get the error message:

"Enumeration yielded no results" when i expand the result for that variable and it will not step into it. but if i do not expand the result, it will step in. It seem that some how, once an element is accessed for that 'In' collection, it breaks (meaning does not loop for the rest of the elements) the next for that collection is this a bug or am i missing something in Linq? BTW: i believe it has something to do with the SqlDataReader in the Linq. I'm working with IAsyncResult.

View 5 Replies

Import A Platinum Level Advisor .jar To Use With This Platinum Level Product Key?

Nov 10, 2009

U0161 import a Platinum level Advisor .jar to use with this Platinum level product key.How I can get this and import it to continue my completion of setup of mysql download?From where I can download that file?To enable this application, please provide a MySQL Enterprise Product Key or your MySQL Enterprise credentials.

View 1 Replies

Disk I/O's Per Second?

Jul 13, 2010

I'm interested in Windows performance especially the number of disk reads and writes per second. Windows knows for performance data. Does anyone know have to collect this data programatically?

View 13 Replies

Get Hard Disk Name?

Jul 21, 2010

How would I find the letter for the hard disk? e.g C:

Because I know some computers have different letters insetad of C.

Also, on a slightly different topic (I didnt think it was worth starting a new thread for it), I need a program to start during the start up of the computer it is on, am I right in saying I need to create a shortcut (which I think is a .lnk file?) and then put that in the startup folder. I'm doing this in code, but I was wondering what information I need in the shortcut file.

View 12 Replies

Get The Disk I/O On Various Servers?

May 22, 2012

I am using the following code to get the Disk I/O on various servers. For now I am just retrieving the DiskReadsPerSec to get a feel for it. The return data gives a uint32 for each drive on the server and a total. My questions is what is the time frame that this represents? Is this at the second that my code polls the drive or is this over the last few seconds or do I need to do multiple runs to get an average.

My intention is to build a graph for each drive so I wonder how often I need to poll the drive to get a acurate value.

Public Shared Function GetDriveIO(ByVal strip As String) As Boolean
Dim oConn As New ConnectionOptions()
Dim lnglist As New List(Of Long)

[Code]....

View 1 Replies

Get The Hard Disk Or CPU SN?

Apr 3, 2010

I work with VB 2008 I need to know a main part Serial number such hard disk or CPU in the local machine?

View 4 Replies

Get The HDD Disk Drive Information?

Mar 3, 2010

I am trying to get the HDD Disk Drive information from the DeviceIOControl(,,,,,) function with IOCTL_DISK_GET_DRIVE_LAYOUT_EX control code.

Here are the problems :

1. The DeviceIOControl function returns(as from output buffer) DRIVE_LAYOUT_INFORMATION_EX structure. Which contains some data types i am unable to get. I used. Uint32 instead of Dword. Long instead of Large_Integer.

2. DRIVE_LAYOUT_INFORMATION_EX structure contains a union declaration as mentioned on MSDN , HOW TO GET A UNION in VB.NET or vb 6.

3. Still when i tried declaring the data types as mentioned earlier gives an error (Value does not fall within the expected range.) executing the DeviceIOControl Method.

Link : [URL]

View 8 Replies

Calculate Size On Disk?

Oct 25, 2011

I am trying to calculate the total size on disk of all files in a directory. However, it does not appear to be working.

Here is my code behind:

Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
Dim dInfo As New DirectoryInfo("C:WebsitesHKM3TempUpload")

[Code]......

View 7 Replies

Create A Disk From From A MemoryStream

Jul 6, 2011

I'm working on a project in VB.Net (2010) where I'm extracting files from an Document Management System.The Files reside on the network, and information about the files are in a SQL 2005 Database and have been encrypted with the Encryption Stream (System. Security. Cryptography. Rijndael Managed)i have retrieved the file, and decrypted them, but I'm trying to find out how to write the stream back to a file.I know the file type (which is stored in a SQL DB)I can't find a solution in any of the VB files or the MS site.

View 2 Replies

Determining The Disk Space?

Sep 5, 2009

Im creating a program that auto starts with my computer. On this program im adding a section that states how much space i have left on the C: drive. So far i have 2 labels and a progress bar. in the top level i have the name of what the progress bar is, and the second below the progress bar states the amount such as this "430GB/740GB". i also want the progress bar to state the percent of how full this drive is. how can i do the following:

Determine the amount of drive space on C:
Determine the amount of free space on C:
Make free space a percent of all space. such as "30% full"

View 4 Replies

Find The Disk ID Of A Drive?

Nov 29, 2009

i'm trying to list out the what to pick when using the perfmon counter, physical disk. when you look at it in perfmon, it shows for example, 0 C:, 1 D:. I see how to get the drive letters avaliable on the sytem.. how in vb.net to get the disk id. i want to get a listing of all the hard drives on the system, both their ID and the drive letter.

View 7 Replies

Get DVD Info From Physical Disk?

Jun 25, 2012

I have seen numerous dvd playing apps that when you insert the dvd into the drive is displays the movie name. Im looking to implement something like this. I want to show a desktop alert showing the movie name when it has been put into the drive so the user can add it to the collection.

I have "googled" around for this and have found nothing on reading DVD info. how to get the dvd info from a drive?

View 4 Replies

Hard Disk Manufacturer Name

May 24, 2012

I try to get hard disk Manufacturer name but can't figure out I tried whit wim but what I get is Standard disk drives and not seagate or samsung etc. [code] is there a way to get the manufacturer name by another way?

View 12 Replies

List ALL Files In A Disk?

Nov 21, 2009

I want to get a complete list of all files on a disk, if i write code to list files in a folder, the web gives lots of examples how to do it, and for a folder (including sub folders) of tens of thousands of files, they all work. however, my disk has 250,000 files and i cannot make any method work.The My.Computer.FileSystem.GetFiles(FolderBrowserDialog1.SelectedPath, FileIO.SearchOption.SearchAllSubDirectories, "*.*") method runs for an hour and then crashes.the Directory.GetFiles(path,searchPattern, searchOption) throws an exception when it reached the system volume information directory.

View 5 Replies

Make A Disk Ejector In .net?

Aug 15, 2011

i need to make a disk ejector?

View 17 Replies

Making A Disk That Has Different Software On?

Jul 19, 2009

I am making a disk that has different software on. All the software are in rar files. What i want to do is when i click on a button it opens the rar file so i can view the software files inside.

Ive been looking every where to find the answer but i keep getting told different things.

View 1 Replies

Save Files In Disk?

Feb 6, 2012

I want to save the files as pdf,jpeg,txt,gif etc to disk from database. In database it is stored as binary data.

View 2 Replies

Save Textbox To Disk In .NET?

Nov 24, 2009

I am wondering how to save a textbox contents to disk?? Using the MSDN help I was able to come up with this code so far. I have a menu strip item labled "save as." when I click it the prompt to allow you to pick a location to save comes up and it will save a text file to the selected location but the .txt file is blank. How do I set this code so that it knows to save the contents of the textbox.

[code]...

View 6 Replies

Save Textbox To Disk?

Nov 24, 2009

am wondering how to save a textbox contents to disk?? Using the MSDNI was able to come up with this code so far. I have a menu strip item labled "save as." when I click it the prompt to allow you to pick a location to save comes up and it will save a text file to the selected location but the .txt file is blank.

Dim saveFileDialog1 As New SaveFileDialog()
saveFileDialog1.Filter = "Text|*.txt"
saveFileDialog1.Title = "Save File As"

[code].....

View 1 Replies

Check Disk Compression Property?

Aug 29, 2011

I want to check Disk compressed(compress drive to save disk space) property. I have following code to check it. But it always return false. whether it is compress or not.

Dim drive As String = "C"
Dim parameter As String = "win32_logicaldisk.deviceid=""" + drive + ":"""
Dim diskSize As New ManagementObject(parameter)

[Code]....

View 21 Replies

Checking Disk Quota On Folder

Aug 3, 2011

I have to copy some files (about a total of 100mb) to a network drive for instance And before copying I want to check the disk quota on that folder. How do I do this?

View 4 Replies

Copy Files From The USB Flash Disk?

Sep 19, 2010

how to copy files from the USB flash disk drive Automatically?

View 5 Replies

Embedded Object Disk Path?

Oct 22, 2010

How can I programatically find the path and file name for an embedded object in an Excel worksheet? I know I can right click on the object and select Packager Shell Object and then Properties to find the information

View 1 Replies

Generate A Virtual Disk / Path?

Mar 26, 2009

Is there some way to generate a virtual disk/path?My application needs to generate a lot of temporary small files, edit them, write to disk, execude old executables in Fortran, and read the text files outputs.I cannot choose to avoid the fortran, because is out of my power to decide it.all that I/O is really expensive, because disk access is slow. But all the files involved are really small (including the executable), so they may fit on a few megabytes of RAM, and I have gigabytes of RAM available (RAM is really cheap today).Worse, I cannot parallelize, because it forces me to multiply I/O operations (I need to create, edit, and delete lots of small files).The perfect solution would be to have a small virtual disk in memory.I cannot use a virtual PC software, because users would have a hard time installing it (they have problem using windows explorer even to do simple tasks).

View 4 Replies

Get Disk Space Of A Remote Computer?

Apr 11, 2011

I was thinking will it be possible to get a disk space of a remote and local machine using asp.net 2008?

View 2 Replies

Get The Compressed State Of A Disk Or Directory?

Jul 28, 2011

In [URL]I asked how do I get the compressed state of a file and I got a answer that works for files that is but now I'm looking to find out weather or not a Directory or Disk is Compressed Does any body have an answer

View 2 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved