Re: Formatting device from a script on Windows

2006-09-19 Thread volcano
OK, it worked. Obviosly, quick format was a bad choice. Thanks a lot for your help! Mark -- http://mail.python.org/mailman/listinfo/python-list

Re: Formatting device from a script on Windows

2006-09-19 Thread volcano
weir wrote: > this may help, you need ctypes module. > > ## > from ctypes import * > > fm = windll.LoadLibrary('fmifs.dll') > > def myFmtCallback(command, modifier, arg): > print command > return 1 # TRUE > > FMT_CB_FUNC = WINFUNCTYPE(c_int, c_int, c_int, c_voi

Re: Formatting device from a script on Windows

2006-09-19 Thread weir
this may help, you need ctypes module. ## from ctypes import * fm = windll.LoadLibrary('fmifs.dll') def myFmtCallback(command, modifier, arg): print command return 1# TRUE FMT_CB_FUNC = WINFUNCTYPE(c_int, c_int, c_int, c_void_p) FMIFS_HARDDISK = 0x0C fm