import sys one = sys.argv[1] two = sys.argv[2] message = open("c:/temp/log.txt", "a") message.write(one+"\n") message.write(two+"\n")** If you want to run python scripts (on a regular basis) from the command line though, it's easier to just pull up a windows command prompt and run it from there.
Correct me if I am wrong, but it seems like the Python window is basically just an interactive window (not a full blown IDE), and not really geared for running a full script in (just one line at a time).
Thanks for the helpful update, Robert!
If you were planning on executing the script from Windows Task Scheduler, would you move the comments hash from the sys.argv variables and put them in front of the arcpy.GetParameterAsText variables in your script, or are you just explaining where those variable will receive their arguments from?
In other words, do we need to use sys.argv for Scheduled Tasks?