drive encryption using python

A forum for general discussion of the Python programming language.

drive encryption using python

Postby abroy » Tue Aug 27, 2013 4:13 am

Here i am trying to encrypt my removable media(F:) using python but getting the error, my script is

Code: Select all
from win32com.client import Dispatch

colitem=objSwbemservices.ExecQuery("SELECT * FROM Win32_EncryptableVolume")
for objitem in colitem:
    if Driveletter=="F:"
       print objItem.GetConversionStatus

its showing following error

'int' object is not callable
Last edited by micseydel on Tue Aug 27, 2013 5:17 am, edited 1 time in total.
Reason: Locked OP, added code tags.
Posts: 1
Joined: Tue Aug 27, 2013 3:53 am

Re: drive encryption using python

Postby micseydel » Tue Aug 27, 2013 5:19 am

Please post your full traceback verbatim.
Join the #python-forum IRC channel on for off-topic chat!

Please prefer not to PM members. The point of the forum is so that anyone can benefit. We don't want to help you over PMs/emails/Skype chats that others can't benefit from :)
User avatar
Posts: 2904
Joined: Tue Feb 12, 2013 2:18 am
Location: Mountain View, CA

Return to General Discussions

Who is online

Users browsing this forum: Majestic-12 [Bot] and 6 guests