![]() ![]() ![]() InputWriter.WriteLine("RAMDisk for valueable data") StreamWriter inputWriter = process.StandardInput Private void sendCMDInput(Process process) Process process = Process.Start(formatRAMDiskProcess) ProcessStartInfo formatRAMDiskProcess = new ProcessStartInfo() įormatRAMDiskProcess.UseShellExecute = false įormatRAMDiskProcess.CreateNoWindow = true įormatRAMDiskProcess.RedirectStandardInput = true įormatRAMDiskProcess.UserName = "Administrator" įormatRAMDiskProcess.Password = password įormatRAMDiskProcess.Arguments = "/C " + cmdFormatHDD SecureString password = new SecureString() String cmdFormatHDD = "format " + MountPoint + "/Q /FS:NTFS" * since the format option with imdisk doesn't seem to work ![]() ProcStartInfo.Arguments = "/C " + initializeDisk + imdiskSize + mountPoint Ĭonsole.WriteLine("There was an Error, while trying to create a ramdisk! Do you have imdisk installed?") ProcessStartInfo procStartInfo = new ProcessStartInfo() String mountPoint = "-m "+ MountPoint + " " ImDisk is a RAM disk app that creates a virtual drive from a sector of memory, and has an API that can be called from. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |