obiemekus

Creating folders help (python beginner)

Discussion created by obiemekus on Feb 23, 2012
Latest reply on Feb 23, 2012 by obiemekus
I am trying to create folders and each folder will have a name from a field in my grid layer.
My grid has 500 tiles and I need to create 500 folders.  The naming convention is like 001A1, 001A2,
001A3, 001B1, 001B2, 001B3, 001C1, 001C2, 001C3, 002A1...................

My code starts like this
import sys, string, os, arcgisscripting, traceback
gp = arcgisscripting.create()
env.workspace = "C:\Backup Files\Backup Files\GISPROJECTS\Python_Practice"


# Set local variables
output_folder_path= "C:\Backup Files\Backup Files\GISPROJECTS\Python_Practice"out_name = "folder1"
output_folder_name = foldername

# Execute CreateFolder

Outcomes