在结构化存储中添加数据 [英] Adding data in structured storage

查看:46
本文介绍了在结构化存储中添加数据的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

你好,
我创建了一个扩展名为.stg的存储,它充当文件系统.现在,我想向其中添加我现有的硬盘数据(如文件和文件夹).我正在Visual Studio中将其作为Windows控制台应用程序作为项目类型来进行.有人可以帮我吗?提前thanx

Hello,
I have created a Storage with .stg extension which act as file system. Now i want to add my existing hard disk data( like files and folder) to it. I''m doing it in Visual Studio as Windows Console Application as project type. Can anybody help me out? thanx in advance

推荐答案

这应该可以帮助您

Ryan Zahra为您提供了指向COM文档的链接,显然您可以按预期使用文件格式,但是您可能不想这样做.

您可能会找到
虚拟硬盘映像格式 [http://en.wikipedia.org/wiki/VHD_(file_format) [
问候
Espen Harlinn
Ryan Zahra has provided you with a link to the COM documentation, and obviously you can use the fileformat as you intend to, but you may not want to do it this way.

You may find the Virtual Hard Disk Image Format[^] more suitable, and you may even be able to boot from your backup http://en.wikipedia.org/wiki/VHD_(file_format)[^] - if you are running Windows 7 Enterprise, Ultimate or Windows 2008 R2 Server.

The thing about backups is that when you need them, it''s kind of nice to get them up and running without a lot of fuss - at least it''s something worth researching a bit further.

You can even use Windows Disk disk management to create and mount VHD files, so you can get it done without writing a single line of code :) (Open Administrative Tools -> Computer Management - goto Storage -> Disk Management and right click on the node in the treeview, you''ll see "Create VHD" and "Attach VHD")

Regards
Espen Harlinn


如果我没有记错,Microsoft ActiveSync使用.stg文件来备份文件,除非您知道stg文件的格式,否则您不能以编程方式将文件备份到stg文件中. br/>
问候,

K,D
If i am not mistaken .stg files are used by Microsoft ActiveSync to backup files you cannot programmatically backup your files into an stg file unless you know the format of the stg file.

Regards,

K,D


这篇关于在结构化存储中添加数据的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆