FredixBlog


Just my log about anything I could find enjoyable.



Format a floppy in ACCESS without creating a batch file

author Posted by: fredometro on date Jan 6th, 2004 | filed Filed under: MS-Access

Quertion: I would like to know if you can format a floppy in ACCESS without creating a batch file
Fredix gave this response on 11/14/2000:
Yes, you can do this. Here is a function for Windows NT:

Public Function FormatFloppy()
Dim nil
    nil = Shell(”c:\\winnt\\system32\\cmd.exe /c format a:”, vbNormalFocus)
End Function

For Windows 95,98 or ME:

Public Function FormatFloppy()
Dim nil
    nil = Shell(”c:\\windows\\command.com /c format a:”, vbNormalFocus)
End Function

Best regards.