2

I making a test program for my USB sticks but every time I plug in one of the USB's sticks Windows shows me the pop-up window "You need to format the disk...". Is it possible to let Windows not show this message without removing the drive letter (this is the solution I found but is not a solution for me because my drive needs to have a drive letter). When I replug the USB, Windows needs to mount my USB again, but just not show the message.

Thanks,

Pierre
  • 21

2 Answers2

0

If it's just for testing purposes on your machine you could write yourself a quick AutoIt script that automatically closes the popup the second it appears.

While 1
   WinClose("Microsoft Windows", "You need to format the disk in drive")
   Sleep (1000)
Wend

Can't reproduce the popup here but I think this should work.

adiuva
  • 128
0

Thanks adiuva, it works wit Autolt. But is there a possibility to also let the application check if "You need to format the disk I: before you can use it." is in the pop-up and only then close the pop-up? Code Pop up

Pierre
  • 21