Location:
Search - MYDISK
Search list
Description: 私人磁盘ACCESS源码版,可创建、打开、加密虚拟私人磁盘,可同时或单独打开关闭系统多个光驱。
Platform: |
Size: 96966 |
Author: leal |
Hits:
Description: 私人磁盘ACCESS源码版,可创建、打开、加密虚拟私人磁盘,可同时或单独打开关闭系统多个光驱。-ACCESS-source version of the private disk, you can create, open, encrypted virtual private disk can be opened at the same time or separately, to shut down the system a number of CD-ROM.
Platform: |
Size: 96256 |
Author: |
Hits:
Description: 本实验用某个大文件,如c:\myDisk.img,文件存储整个文件卷中的所有信息。
一个文件卷实际上就是一张逻辑磁盘,磁盘中存储的信息以块为单位。每块512字节-In this study, using a large file, such as c: \ myDisk.img, file storage information in the volume of the entire file.
A file volume is actually a logical disk, disk information stored in block units. Each block of 512 bytes
Platform: |
Size: 6144 |
Author: 陈小默 |
Hits:
Description: 这个是一个网盘的小例子程序,主要使用的struts2,实现了文件的上传和下载,以及权限的控制-This is a small example program network disk, the main use of struts2, implements file upload and download, and authority control
Platform: |
Size: 679936 |
Author: 王贺 |
Hits:
Description: 源码包含一个读取ISO文件和虚拟磁盘文件(VHD, VDI, XVA, VMDK, etc)的类和完整的调用示例。
对于ISO、UDF、FAT和NTFS的支持已经非常完善。支持VHD, XVA, VMDK 和VDI格式的读写与注册。
类库中还包含一个简单的iSCSI启动器,可以通过iSCSI和一个NFS客户端实现对磁盘的访问。
这里有几段简单的示例代码,可以看出来使用还是非常方便的:
新建一个ISO文件:
CDBuilder builder = new CDBuilder();
builder.UseJoliet = true;
builder.VolumeIdentifier = "A_SAMPLE_DISK";
builder.AddFile(@"Folder\Hello.txt", Encoding.ASCII.GetBytes("Hello World!"));
builder.Build(@"C:\temp\sample.iso");
你可以通过流或者文件的方式来进行ISO的操作。
从ISO文件中提取一个文件:
using (FileStream isoStream = File.Open(@"C:\temp\sample.iso"))
{
CDReader cd = new CDReader(isoStream, true);
Stream fileStream = cd.OpenFile(@"Folder\Hello.txt", FileMode.Open);
// Use fileStream...
}
同样,你也可以浏览ISO内部包含的目录或者作为启动盘。
新建一个虚拟磁盘:
long diskSize = 30 * 1024 * 1024; //30MB
using (Stream vhdStream = File.Create(@"C:\TEMP\mydisk.vhd"))
{
Disk disk = Disk.InitializeDynamic(vhdStream, diskSize);
BiosPartitionTable.Initialize(disk, WellKnownPartitionType.WindowsFat);
using (FatFileSystem fs = FatFileSystem.FormatPartition(disk, 0, null))
{
fs.CreateDirectory(@"TestDir\CHILD");
// do other things with the file system...
}
}
新建一个虚拟软盘:
using (FileStream fs = File.Create(@"myfloppy.vfd"))
{
using (FatFileSystem floppy = FatFileSystem.FormatFloppy(fs, FloppyDiskType.HighDensity, "MY FLOPPY "))
{
using (Stream s = floppy.OpenFile("foo.txt", FileMode.Create))
{
// Use stream...
}
}
}
也可以作为启动软盘使用。
Platform: |
Size: 438282 |
Author: twklzw |
Hits: