完善资料让更多小伙伴认识你,还能领取20积分哦, 立即完善>
>在测试期间,我需要分区并格式化“处女”>硬盘。
没有>任何用户干预,有人知道这样做的方法.Yup。 hDisk = CreateFile(“\。 physicaldrive”,...)其中是基于azero的磁盘编号,然后是DeviceIoControl(hDisk,...),使用:IOCTL_DISK_CREATE_DISK - 初始化磁盘。 IOCTL_DISK_FORMAT_TRACKS - 格式化曲目。 IOCTL_DISK_SET_DRIVE_LAYOUT_EX - 分区。 IOCTL_DISK_SET_PARtiTION_INFO_EX - 设置分区类型。可以使用任何文件系统,可以播放各种技巧,可以设置双(多安,我认为)启动分区...基本上你可以做任何交互式的事情加 如果这些操作(分区和格式)>在几个不同的磁盘上日复一日地完成,那么会出现问题吗?不是真的,尽管安装列表会开始变长。 你可以通过删除注册表中的挂载信息来轻松处理(我认为)过程(我必须查找它 - 暂时没有在myfingertips的位置).- SHAWN ----你现在 订阅vrf为:r***@soco.agilent.com要订阅,请发送一封空白电子邮件至“join-vrf@it.lists.it.agilent.com”。要取消订阅,请发送一封空白电子邮件至“leave-vrf@it.lists”。 it.agilent.com“。要发送邮件到这个邮件列表,请发送电子邮件至”vrf@agilent.com“。 如果您需要有关邮件列表的帮助,请发送邮件至“owner-vrf@it.lists.it.agilent.com”。将您最喜欢的VEE示例发送到“VRF-EXAMPLES@agilent.com”,以便可能包含在VEE 7.0中! 以上来自于谷歌翻译 以下为原文 > During the test, I need to partition and to format "virgin" > hard disks. Does someone knows a way to do this without > any user intervention. Yup. hDisk = CreateFile("\.physicaldrive", ...) where is a zero-based disk number, then DeviceIoControl(hDisk, ...) using: IOCTL_DISK_CREATE_DISK - to initialize a disk. IOCTL_DISK_FORMAT_TRACKS - to format tracks. IOCTL_DISK_SET_DRIVE_LAYOUT_EX - to partition. IOCTL_DISK_SET_PARTITION_INFO_EX - to set partition types. Any file system can be used, all sorts of tricks can be played, dual- (and even multi-, I think) boot partitions can be set up... basically you can do anything you can do interactively plus a whole lot more. > so is there a problem if these operation (partition and format) > are done day after day on several different disks? Not really, though the mount list will start getting long. You can easily handle that (I think) during the process by deleting the mounting info from the registry (I'd have to look it up - don't have the location at my fingertips at the moment). -SHAWN- --- You are currently subscribed to vrf as: r***@soco.agilent.com To subscribe send a blank email to "join-vrf@it.lists.it.agilent.com". To unsubscribe send a blank email to "leave-vrf@it.lists.it.agilent.com". To send messages to this mailing list, email "vrf@agilent.com". If you need help with the mailing list send a message to "owner-vrf@it.lists.it.agilent.com". Send your favorite VEE example to "VRF-EXAMPLES@agilent.com" for possible inclusion in VEE 7.0! |
|
相关推荐
1个回答
|
|
嗨,我正在为包含串行ATA硬盘的产品开发测试。
在测试期间,我需要分区并格式化“原始”硬盘。 没有任何用户干预,有人知道这样做的方法。 通过DLL或ActiveX或MS脚本进行的调用应该没问题。 该试验台是在Win XP.Also,我注意到,Windows会记住硬盘在PC几天后(相关信息应书面某处)时去除andreinstalled,所以有一个问题,如果这些操作(分区和格式化) ?完成日复一日在几个不同的磁盘感谢您time.Bruno .---您当前订阅的VRF为:r***@soco.agilent.comTo订阅发送空白邮件到“join-vrf@it.lists。 it.agilent.com“。要取消订阅,请发送一封空白电子邮件至”leave-vrf@it.lists.it.agilent.com“。要发送邮件到此邮件列表,请发送电子邮件至”vrf@agilent.com“。 如果您需要有关邮件列表的帮助,请发送邮件至“owner-vrf@it.lists.it.agilent.com”。将您最喜欢的VEE示例发送到“VRF-EXAMPLES@agilent.com”,以便可能包含在VEE 7.0中! 以上来自于谷歌翻译 以下为原文 Hi, I am developping a test for a product that includes a serial ATA hard disk. During the test, I need to partition and to format "virgin" hard disks. Does someone knows a way to do this without any user intervention. A call thru a DLL or ActiveX or MS scripting should be fine. The test station is on Win XP. Also, I noticed that Windows remembers the hard disk when removed and reinstalled in the PC few days later (the related information should be written somewhere), so is there a problem if these operation (partition and format) are done day after day on several different disks? Thanks for your time.Bruno.---You are currently subscribed to vrf as: [email=r***@soco.agilent.com]r***@soco.agilent.com[/email]To subscribe send a blank email to "join-vrf@it.lists.it.agilent.com".To unsubscribe send a blank email to "leave-vrf@it.lists.it.agilent.com".To send messages to this mailing list, email "vrf@agilent.com". If you need help with the mailing list send a message to "owner-vrf@it.lists.it.agilent.com".Send your favorite VEE example to "VRF-EXAMPLES@agilent.com" for possible inclusion in VEE 7.0! |
|
|
|
只有小组成员才能发言,加入小组>>
1221 浏览 0 评论
2346 浏览 1 评论
2155 浏览 1 评论
2021 浏览 5 评论
2900 浏览 3 评论
961浏览 1评论
关于Keysight x1149 Boundary Scan Analyzer
697浏览 0评论
N5230C用“CALC:MARK:BWID?”获取Bwid,Cent,Q,Loss失败,请问大佬们怎么解决呀
797浏览 0评论
1221浏览 0评论
小黑屋| 手机版| Archiver| 电子发烧友 ( 湘ICP备2023018690号 )
GMT+8, 2024-11-22 07:52 , Processed in 1.330076 second(s), Total 75, Slave 59 queries .
Powered by 电子发烧友网
© 2015 bbs.elecfans.com
关注我们的微信
下载发烧友APP
电子发烧友观察
版权所有 © 湖南华秋数字科技有限公司
电子发烧友 (电路图) 湘公网安备 43011202000918 号 电信与信息服务业务经营许可证:合字B2-20210191 工商网监 湘ICP备2023018690号