Make A Disk Ejector In .net?
Aug 15, 2011i need to make a disk ejector?
View 17 Repliesi need to make a disk ejector?
View 17 RepliesI need to know how can I make a program for specific hard disk? I have heard it that programmers use hard disk`s unique number to protect their program. So that user cant use this program there in another pc(hard disk).
View 1 RepliesI was thinking to make an app to save images [or download images] to local hard disk. But to keep it easy, I want this app to create a small picturebox on form to show the thumbnail of downloaded image. Lets say a 5 pictureboxes has to be added with the thumbnails to show the recent downloads. A user can save the location where he wants to save the files on hard disk. A listbox or a dropdown menu will help in categorizing the images, like image1 in friends section, image2 in family section, image3 in others, etc... When the program restarts all the latest 5 thumbnails has to be loaded in pictureboxes and the directory that was chosen. Finally, a button that shows the downloaded images into original image file size one by one or a slide show. Is it possible to make such program?
View 2 RepliesI'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 RepliesHow 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.
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]....
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 RepliesI 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 RepliesI 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]
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]......
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 RepliesIm 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"
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 RepliesI 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?
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 RepliesI 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 RepliesI 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.
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 RepliesI 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]...
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].....
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]....
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 Replieshow to copy files from the USB flash disk drive Automatically?
View 5 RepliesHow 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 RepliesIs 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 RepliesI was thinking will it be possible to get a disk space of a remote and local machine using asp.net 2008?
View 2 RepliesIn [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 RepliesI 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.
[Code]...
was thinking will it be possible to get a disk space of a remote and local machine using asp.net 2008
View 6 RepliesI am Creating a software which require users to enter the serial key provided by me. Well I want the users to send me the Computer key which how can i interface into my VB.net
After that Computer key I'll be sending them the activation key.Just like many softwares available in the market which does this?