os.system function

Olof Bjarnason olof.bjarnason at gmail.com
Mon Jan 11 16:14:09 EST 2010


2010/1/11 Zabin <zabin.farishta at gmail.com>:
> Hey everyone!
>
> I am a new python programmer. I am trying to get the general file
> functionality with options of save and save as working. These save
> functions save a folder with multiple files. Upon using the os.system
> copy function- if my destination directory has files with similar
> names- i am asked whether i want to replace the files on the command
> prompt.
>
> Is there some way of getting this question into a dialog box?
>
> Also is there someway of avoiding or programmatically setting the
> response to the command prompt?

I recommend the shutil module, which is built-into Python:

http://docs.python.org/library/shutil.html

You will have more control of what you are doing with it.

>
> Cheers
> Zabin
> --
> http://mail.python.org/mailman/listinfo/python-list
>



-- 
twitter.com/olofb
olofb.wordpress.com



More information about the Python-list mailing list