Questions tagged [drives]
55 questions
2
votes
2 answers
Cmake File COPY across drives
The following does not work:
cmake file ( copy "C:/pathtofile/file.file" DESTINATION "D:/pathtofile2/file2.file" )
Is there a way to achieve the same thing using cmake?

codeMetis
- 420
- 4
- 16
2
votes
0 answers
Do modern operating systems ignore LBA/CHS information in the MBR boot sector?
I've wiped all the CHS/LBA information and bootcode on a spare flash drive leaving only the bare sector count information:
00000000 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................|
00000010 00 00 00 00 00 00 00 00 00 00 00 00…

Gala
- 2,592
- 3
- 25
- 33
2
votes
1 answer
how to use a relative path to switch over to a different drive
A method I am using to import images requires me to use a relative path but the pictures I would like to import are on a different drive. I'm not sure if there is a way for me to access that location using a relative path. If not can someone please…

Baby Coder
- 759
- 1
- 7
- 14
2
votes
4 answers
how to search media file in our system by c#?
I want to search the media files situated in my system by c#. means I want to create the search engine that will scan all drives (again small question here , how to get the drives on our system by c# code ? )and search the media files like…

Red Swan
- 15,157
- 43
- 156
- 238
2
votes
1 answer
System.IO.DriveInfo.GetDrives() hangs with disconnected network drives
I am writing a file manager in .NET 3.5. At startup, the application must enumerate available drives. I am using DriveInfo.GetDrives to do that.
Unfortunately my users lamented that, when they have disconnected network drives, the application took…

seguso
- 2,024
- 2
- 18
- 20
1
vote
2 answers
Detecting USB and Floppy Drives' Letters via VBScript
I have a Vb-script which store all removable drives' letters into a variable, As you know it contains both floppy and USB drives, I want to seperate them, I mean I want to store USB Drives' Letters in a variable and Floppy ones into another…

Inside Man
- 4,194
- 12
- 59
- 119
1
vote
0 answers
What are Slack Spaces and How the OS Allocate New File to the Original Sector After Deleting the Old File?
I got it now.
File slack can break down into RAM slack and drive slack.
And since all data can rarely 100% reach the end of a sector after a file's been saved in sectors or clusters, OS writes RAM data right after that file, and put deleted files or…

Kira Nofans
- 176
- 1
- 6
- 20
1
vote
0 answers
What API to retrieve PC Disk Drive properties?
I need to check disk name and whether the "enable write caching on the device" is enabled or not. so far I tried api method DriveInfo.GetDrives , But it doesn't have any property or methods that can return information I am looking for.
…

user1745679
- 209
- 1
- 2
- 9
1
vote
1 answer
Swift, get drive Icon
I was looking for a way to display icons for the mounted drives and also for specific folders.
I read all the documentation of NSWorkspace and I found this code but I'm not able to use it to get the icon for a mounted volume.
let icon =…

Cristian
- 654
- 1
- 13
- 30
1
vote
1 answer
How to get drive label in Linux using C from userspace
I need to get a label for specific device using c/c++ (and no d-bus) in linux. The problem is that i can't just open device and read it's information (for extN it is very easy to get label from device) because reading from /dev/xxx requires root…

ABBAPOH
- 11
- 2
1
vote
0 answers
Display General tab information of property window of local disks in my computer
I need to access the type of disk and display it in the C# code. In this image "
Local Disk Image" the type is local disk.
In this image "Cluster Disk Image" the type of disk is cluster disk.
I have used driveInfo class to get the drive details. but…

Madhukiran Ns
- 41
- 11
1
vote
1 answer
Restrict Drive Letter Selection By Type
I have a form on which a user can select a source drive letter:
If FolderBrowserDialog1.ShowDialog() = DialogResult.OK Then
TextBox1.Text = FolderBrowserDialog1.SelectedPath
End If
I need to restrict the selection of drive letters to CDROM or…

georgemackenzie
- 171
- 2
- 4
- 19
1
vote
0 answers
Getting the Physical Device Object for a specific volume id
I want to query different flags of a specific volume. Input should be the volume id, for instance:
\\?\Volume{b1a245f3-0000-0000-0000-100000000000}\,
then some flags are checked and the output is true/false depending if the desired flags are…

mkay
- 11
- 2
1
vote
1 answer
Deleting Desktop Shortcuts Associated With Network Drives?
I've been working to clean up a messy Active Directory as well as a network file system in the same state and I understand the concept of mapping users network drives and currently use a combination of batch and vbs files to do so. However, I need…

Samuel Pardee
- 23
- 1
- 4
1
vote
3 answers
how can I separate the C:\ drive from all drivers?
I have this program but I have an issue when this try to access the FIRST if... I need to separate the drivers and only get the total size of C:\. When the program stops at the if... say that the drive is not ready. What can I do?
class Program
{
…

Manuel Fdz
- 5
- 5