hard-drive

How can i determine the sector size in windows

限于喜欢 提交于 2019-12-02 14:17:20
How can I determine the Physical Sector Size (e.g. if i have an Advanced Format drive with 4,096 byte sectors rather than the legacy 512 byte sectors) in Windows 7? I know that by clicking on a file and get properties we can find out the NTFS Cluster Size , but that's not the same as the hard-drive's sector size. Note : We ask about Windows 7 because it (and Windows Vista SP1) understand the existence of 4096 Advanced Format hard drives. You want fsutil. Make sure you run Command Prompt as Admin. C:\Windows\system32>fsutil fsinfo ntfsinfo c: NTFS Volume Serial Number : 0xf4ca5d7cca5d3c54

Hard disk id of SATA drives

扶醉桌前 提交于 2019-12-02 10:01:22
I am using Hard disk ID for my software to check if the authentic user is using the software. For IDE type hard disk i get the id using the procedure GetIdeSerialNumber. but in case of SATA drives it gives the id as blank. Then in case of SATA drives i am using volume id as unique id. but volume id will change when system is formatted Now I want to know which hard drive i am using ,and how to get the hard disk id of SATA drive in delphi 7 ? EDIT: the software according to client specifications needs to be locked to the hardware, the ID's concerned are MAC address HD id (SATA or IDE) Controller

html or java script code to create a text file in hard disk

試著忘記壹切 提交于 2019-12-02 08:36:06
Please someone give me a code to create a text file in hard drive Result should be a html file, when double click html file it need to create a text file in a given path in hard drive(local). Thank you. Javascript in a regular HTML page in a browser is not allowed direct access to a path of your choice on the hard disk for security reasons. The, somewhat experimental, FileSystem APIs in newer browsers offering some capabilities to a sandboxed file system, but you will have to see if your need can be satisfied with those APIs. Other than that, you would need some way around the security

check for bad sectors on hard disk

孤街醉人 提交于 2019-12-02 03:17:22
Recently after a couple of power outages, my computer has gotten quite messed up (BSODs every now and then, entire OS behaves really strange). Now I have a program that ran perfectly fine before my computer got messed up. This program just basically creates a file using CreateFile and writes to it using WriteFile . This program also has other stuff doing their thing based on this file. I noticed that the entire program acted strangely as well. My debugging results: I noticed that after CreateFile , the file is created where it should be (checked using Explorer and command-line). WriteFile did

Emulate hard disk in .NET

爱⌒轻易说出口 提交于 2019-12-01 20:11:02
Is there a way to emulate a disk drive in .NET, intercepting read/write/lock operations? I would like to create something with a front-end similar to GMail Drive in C#. Thanks, Tom I use the Eldos Callback File System myself for this purpose, but although it's good, it's not exactly cheap. There are some free/cheap projects as well, and I'm sure one of them was mentioned in a similar question on SO recently -- can't find it anymore at the moment, though. Stability tends to be a major issue, though, as layered Windows file system drivers aren't trivial. On Linux you can use the Mono.Fuse API (

R list.files(my_working_directory) shows no files but I know they are there. How to fix?

社会主义新天地 提交于 2019-12-01 18:44:36
问题 I'm trying to work with R using a directory in my external hard drive as working directory. I can set the working directory to where I want, but when I use list.files R can't see anything. I also can't use read.delim to load a file. For example: > rm(list = ls()) > WD<-"../../../Volumes/My_HD/my_working_directory" > setwd(WD) > getwd() [1] "/Volumes/My_HD/my_working_directory" So far so good, but then: > list.files(WD) character(0) Whilst I would expect a list of the files that I know are

Emulate hard disk in .NET

[亡魂溺海] 提交于 2019-12-01 18:40:13
问题 Is there a way to emulate a disk drive in .NET, intercepting read/write/lock operations? I would like to create something with a front-end similar to GMail Drive in C#. Thanks, Tom 回答1: I use the Eldos Callback File System myself for this purpose, but although it's good, it's not exactly cheap. There are some free/cheap projects as well, and I'm sure one of them was mentioned in a similar question on SO recently -- can't find it anymore at the moment, though. Stability tends to be a major

R list.files(my_working_directory) shows no files but I know they are there. How to fix?

一个人想着一个人 提交于 2019-12-01 18:03:51
I'm trying to work with R using a directory in my external hard drive as working directory. I can set the working directory to where I want, but when I use list.files R can't see anything. I also can't use read.delim to load a file. For example: > rm(list = ls()) > WD<-"../../../Volumes/My_HD/my_working_directory" > setwd(WD) > getwd() [1] "/Volumes/My_HD/my_working_directory" So far so good, but then: > list.files(WD) character(0) Whilst I would expect a list of the files that I know are there and that I can see and open with Finder and with the Terminal. Actually the R script itself is

Hdd Serial Number

*爱你&永不变心* 提交于 2019-12-01 15:10:46
How To Get The Serial Number for all type of harddisk in c#.net Looks like this article should help It uses the WMI Win32_PhysicalMedia class. S.M.A.R.T. IOCTL. Can't remember off the top of my head which smart command but basically you open the volume and issue a S.M.A.R.T. command... 来源: https://stackoverflow.com/questions/677251/hdd-serial-number

Hdd Serial Number

家住魔仙堡 提交于 2019-12-01 12:47:07
问题 How To Get The Serial Number for all type of harddisk in c#.net 回答1: Looks like this article should help It uses the WMI Win32_PhysicalMedia class. 回答2: S.M.A.R.T. IOCTL. Can't remember off the top of my head which smart command but basically you open the volume and issue a S.M.A.R.T. command... 来源: https://stackoverflow.com/questions/677251/hdd-serial-number