Click here to Skip to main content
15,891,248 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
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?
Posted
Comments
[no name] 30-Jun-13 17:56pm    
Copying files is easy. You can use File.Copy to copy files. The formatting of the drive is tricky. I do not know of anything in the .NET framework that would allow you to have such low level access to the drive. It would depend on if the CD you are booting from has the functionality available to it so that you could call it from your VB code.

1 solution

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.
 
Share this answer
 
Comments
Joeadeoye 1-Jul-13 2:47am    
thanks for your reply. How can i create a mono project?
Ron Beyer 1-Jul-13 8:20am    
Download MonoDevelop, its free.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900