I figured it out.
I was looking at(referenceing from) the registry Editor and the vaules are listed alphabetically in here but this may not be the order they were created. What seemed like chaos really wasn't.
I am trying to enumerate the values inside of a key. I am trying to use _winreg.EnumValue. EnumValue takes two inputs, key and index.
key is an already open key, or any one of the predefined HKEY_* constants.
index is an integer that identifies the index of the key to retrieve.
I want to...
Is there a way to detect a name on a drive. For instance if I named my c:\ drive "Local Disk" is there a way to detect or decifer this name.
Thanks for the help!!!
thanks for the link, One more question though.
Do you know what this syntax means:
set dns name="Local Area Connection 2" source=static addr=(some #) register=BOTH
if I have more than one DNS Server address, only one shows up here from the "dump" output, how do I get the...
This question may be out of place on this forum but I will ask it anyways.
I am using the netsh command. I want to be able to save my network configuration and reconfigure from my saved network configuration so I use the command:
netsh -c interface dump > f:\config.txt
What I get get is a...
Is there a module that can tell what drives are on the computer and report them back in a list or such? What I want to be able to do is "plug" in a USB drive and know what letter windows assigns to this drive (f:,g:,h:, etc) Also is there a way in telling if it is a removable drive...
Thanks for the info, it helps a lot.
One additional question: is there a way to print off, for example, 35 spaces without mannually typing in 35 spaces in the print statement?
Does python have the capabilities to format output much like C or Perl??
I am still learning Python and have not come across it yet in my reading.
Any pointers about where to read more, if it is on the python website can you point me to where to look on the site.
Thanks for the help!!! I actually found a round about way of doing it. I am just learning classes. There is a function in distutils.archive_util called make_zipfile. Turns out this is a very simple way to zip a directory and all its contents. Receives the location of the directory to be...
I am new to Python programming but have made considerable progress in the last week.
I need to know if it is possible and how if it is, to zip the contents of a directory using python. I have tried to call winzip using os.system, but have run into some challenges. I would like to make my...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.