2013/12/10

disk flush with python

#!/usr/bin/python
#before run, remove drive letter
lv_disk=open('\\\\.\\PhysicalDrive1','rb+')

try:
    while True:
        lv_disk.write('\x00')
    #end while
except:
    print 'done with flush'
#end try

0개의 덧글:

댓글 쓰기

에 가입 댓글 [Atom]

<< 홈