Quote:
Originally Posted by bbusybookworm
Now I was wondering whether it was possible to modify this command so that when I run it, it automaticly detects any files with a pdb extension in the same folder and runs the script on it and then saves it to a folder of the same name.
so if there was a file xyz.pdb in the same folder it would convert it and save it to a folder xyz in the same place.
|
Not sure how easy it would be in python, but it is a trivial excercise to do this using a command/batch file. Just as it is to do the same the mobidedrm. You end up needing two batch files, one processes each file in the directory, the second accepts the variable needed to define the filename/directory and calls the python script.