摘要: 一使用Unattend.xml那使用自动回应档Unattend.xml。因为Windows提供一套完整的自动配置和部署系统。这是可以使用答案文件和 WindowsPE 来指定不同的设置和操作。Windows PE 启动时,它会在任何可启动设备(例如 USB 闪存驱动器或软盘)的根目录中隐式查找名为 Unattend.xml 的文件。 1 <settings pass="auditUser"> 2 <component name="Microsoft-Windows-Deployment" processorArchitecture=&q 阅读全文
posted @ 2013-06-14 15:19 伍锋 阅读(426) 评论(0) 推荐(0) 编辑
摘要: 一、DISM DISM就是部署映像服务和管理。 /Mount-Image - 从 WIM 或 VHD 文件装载映像。DISM /Mount-Image /ImageFile:%tmp_WinPE_Disk%\media\sources\boot.wim /Index:1 /MountDir:%tmp_WinPE_Disk%\mount /loglevel:1 /logpath:%Pre_Install_Root%\Pre-Install.log /Unmount-Image - 卸载已装载的 WIM 或 VHD 映像。DISM /Unmount-Image /MountDir:%tmp_Win 阅读全文
posted @ 2013-06-14 14:35 伍锋 阅读(301) 评论(0) 推荐(0) 编辑
摘要: 这些月来,我一直忙着做软件,接触了用Visual Studio来写出xml文件。我开始是一头雾水的。后来读过一些资料,就得到相应的知识。所以现在写下来,方便大家和我以后用得上。 首先要写xml文件开头用XmlTextWriter类,接着就调用WriteStartDocument方法,后面就开始写xml节点了。代码如下: XmlTextWriter xml = new XmlTextWriter(str, Encoding.UTF8); xml.Formatting = Formatting.Indented; ... 阅读全文
posted @ 2013-01-04 16:39 伍锋 阅读(339) 评论(0) 推荐(0) 编辑
摘要: 第一种Excel文件就是Microsoft Office的。它的格式就是.xlsx等。我们要读其中内容,首先就是找着Microsoft.Office.Interop.Excel.dll和Office.dll两个dll文件。它一般是藏在C:\Program Files (x86)\Microsoft Visual Studio 11.0\Visual Studio Tools for Office\PIA\Office14中,依次找下去就可得到。在Visual Studio2012的步骤就是,先点击Solution Explorer中程序的reference--->Add Referenc 阅读全文
posted @ 2013-01-04 16:08 伍锋 阅读(1096) 评论(0) 推荐(0) 编辑
摘要: 我前阵子做Google drive的开发。由于不熟悉Windows8所以很费时间。但我发现一例验证方法很好。那就是Google的方法。首先注册开通Google Drive API的开发模式,接着打开Visual Studio12,在其中用一个Button控件,选择Click事件。填入一下代码就好了。private async void Start_Click(object sender, RoutedEventArgs e) { String GoogleURL = "https://accounts.google.com/o/oauth2/auth?cl... 阅读全文
posted @ 2012-12-06 16:51 伍锋 阅读(293) 评论(0) 推荐(0) 编辑
摘要: 首先,我们打开Vs2012,选择好Blank App模板。在MainPage.xaml中拉进Button和image两个空间。在Button控件中选择Click事件。经命名等后,代码如下:<Grid Background="{StaticResource ApplicationPageBackgroundThemeBrush}"> <Button x:Name="Start" Content="Start" HorizontalAlignment="Left" Height="39&qu 阅读全文
posted @ 2012-11-12 11:24 伍锋 阅读(181) 评论(0) 推荐(0) 编辑
摘要: 在metro中跳出窗口有多种形式。我在这里介绍两种情形。第一种是用Popup方法来跳出窗口。主要步骤如下: 首先,打开vs2012找到Blank App模板进去,再拉入一个Button控件,点击事件Click进入。其次,在MainPage.xaml中写入如下代码: <Grid Background="{StaticResource ApplicationPageBackgroundThemeBrush}"> <Button Content="Example 1" Name="btn1" Width="108 阅读全文
posted @ 2012-11-02 16:58 伍锋 阅读(295) 评论(0) 推荐(0) 编辑
摘要: 首先,我们用vs2012来选择BlankApp模板,再选好Button和BlockText控件,在Button中找到Click事件,点击进去。<Grid Background="{StaticResource ApplicationPageBackgroundThemeBrush}"><Button x:Name="files_btn" Content="FileSavePicker" HorizontalAlignment="Left" Margin="514,79,0,0" 阅读全文
posted @ 2012-11-02 14:40 伍锋 阅读(300) 评论(0) 推荐(0) 编辑
摘要: 首先,我们设计好一个BlankApp程序,在添加Button和BlockText控件,在Button中找出Click事件,再单击进入事件。其中xaml中代码显示为: <Grid Background="{StaticResource ApplicationPageBackgroundThemeBrush}"> <Button x:Name="Folder" Content="Button" HorizontalAlignment="Left" Height="52" Margi 阅读全文
posted @ 2012-10-31 15:27 伍锋 阅读(362) 评论(0) 推荐(0) 编辑
摘要: 首先,我们打开VS2012,选择模板BlankApp,填好名字点击进入。在MainPage.xaml中选择一个Button和TextBlock控件。可以在button中选择事件Click。在xaml中代码如下: <Grid Background="{StaticResource ApplicationPageBackgroundThemeBrush}"> <Button x:Name="File" Content="Button" HorizontalAlignment="Left" Height 阅读全文
posted @ 2012-10-31 11:12 伍锋 阅读(205) 评论(0) 推荐(0) 编辑