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.

No related posts.

     Add A Comment

You must be logged in to post a comment.


Warning: include(/home/www/web421/html/phpTraffic/write_logs.php) [function.include]: failed to open stream: No such file or directory in /home/websitef/public_html/fredometro.com/wp-content/themes/blueshadow/footer.php on line 15

Warning: include() [function.include]: Failed opening '/home/www/web421/html/phpTraffic/write_logs.php' for inclusion (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/websitef/public_html/fredometro.com/wp-content/themes/blueshadow/footer.php on line 15