创建应用程序以将文件复制到C:驱动器 [英] creating application to copy files to C: drive

查看:113
本文介绍了创建应用程序以将文件复制到C:驱动器的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Hello Everyone,我想在VB.NET中做一个简单的应用程序。该应用程序将在带有一些其他文件和文件夹的CD上刻录。 CD将是一张可引导CD,当PC从CD启动时,它将启动应用程序,该应用程序将:

1.格式化C:驱动器

2将同一张CD上的所有文件和文件夹复制到格式化的C:驱动器。就这样。可以使用vb.net构建这种应用程序吗?如果是,我该如何开始?

Hello Everyone, i wanna do a simple application in VB.NET. That application will be burnt on a CD with some other files and folders. The CD will be a bootable CD which when a pc boots from the CD, it will start the application and that application will:
1. Format the C: drive
2. Copy all the files and folders on that same CD to the formatted C: drive. Thats all. Can this kind of application be built using vb.net? If yes, how do i start?

推荐答案

这是.NET框架中无法做到的事情之一,很容易......



你能做到这一点的唯一方法是创建一个用于Linux发行版的Mono项目。从发行版创建可引导CD并在其上安装单声道项目。然后,您可以创建一个自动运行脚本,该脚本在发行版启动后运行,格式化驱动器并复制文件。



.NET框架在Windows上运行(或Linux上的单声道)。您不能只制作可引导CD并将.EXE文件复制到它,因为除非启动Windows或Linux,否则没有框架可以运行。
This is one of the things that can't be done in the .NET framework, easily...

The only way you can do this is to create a Mono project for use on a linux distro. Create a bootable CD from your distro and install your mono project on it. You can then create an auto-run script that runs after the distro boots up that formats the drive and copies files over.

The .NET framework operates on Windows (or Mono on Linux). You can't just make a bootable CD and copy the .EXE file to it, since there is no framework to run on unless Windows or Linux is booted.


这篇关于创建应用程序以将文件复制到C:驱动器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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