Thanks guys. The os.path method works, but this is for a script for a website upload program on a zope webserver. For some reason even admin access won't let me run the script through the server.
The main issue with my script is that Firefox has no problem with the program the way it is, but IE somehow uses a different filename format. ex:/ In IE filepath='c:\documents\web\zope\file.ext' In Firefox filepath='file.ext' So when IE goes to upload the file, it gets an error for illegal characters because of the "\"'s and ":" Is there another way to do this (extract just the filename) using something else other than the "os" that won't be blocked by the webserver -- http://mail.python.org/mailman/listinfo/python-list