Jump to content











Photo
- - - - -

Format virtual drive silently

format silent silently .cmd vb.net

  • Please log in to reply
4 replies to this topic

#1 echrisco

echrisco
  • Members
  • 2 posts
  •  
    United States

Posted 28 April 2017 - 08:06 PM

Hi there.

I'm using ImDisk to create a temporary Drive in RAM.

I have tried commands from my app in VB.Net and by running a .cmd or .bat file with 

imdisk -a -s 1G -m X: -p "/fs:ntfs /q /y"

No matter what I do, I get the Virtual Drive okay, but it always pops up confirmation dialogs to format the drive, an alert that it's in use and can't be locked (not trying to lock it anyway), and then confirmation that it has been formatted. 

I want to whole thing to be done invisibly, and preferably w/out scripts. (Just using VB.net commands).

Thank you for your help.



#2 steve6375

steve6375

    Platinum Member

  • Developer
  • 7566 posts
  • Location:UK
  • Interests:computers, programming (masm,vb6,C,vbs), photography,TV,films
  •  
    United Kingdom

Posted 29 April 2017 - 10:28 AM

I use

imdisk -a -s 1234m -m X: -f C:\temp\fred.img -x 63 -y 255 -p "/FS:NTFS /Q /Y"

which seems similar...



#3 v77

v77

    Silver Member

  • Team Reboot
  • 602 posts
  •  
    France

Posted 29 April 2017 - 12:08 PM

Do you have administrative privileges for calling imdisk? If not, the format fails and then Windows prompts you to format.



#4 dickfitzwell

dickfitzwell

    Member

  • Members
  • 33 posts

Posted 30 April 2017 - 05:46 PM

From format /?

"/X  Forces the volume to dismount first if necessary.  All opened handles to the volume would no longer be valid."

imdisk -a -s 1G -m X: -p "/fs:ntfs /q /y /x"


#5 echrisco

echrisco
  • Members
  • 2 posts
  •  
    United States

Posted 03 May 2017 - 07:02 PM

 User%20Account.jpg?attachauth=ANoY7crAVi







Also tagged with one or more of these keywords: format, silent, silently, .cmd, vb.net

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users