How to make an os.system call, without the pop up of the dos-box???

Bjorn Pettersen bjorn at roguewave.com
Fri Aug 4 15:23:32 EDT 2000


Not an answer to your question, but perhaps to your problem <wink>

  import shutil
  shutil.rmtree(r'C:\arwa\dev\', 1)
  shutil.copyfile('../AccessDB_ORIG\OrigPTC.mdb',
'../AccessDB_ORIG/PTC-000526.mdb')

and-as-a-bonus-it'll-work-on-unix-too'ly y'rs
-- bjorn

Peter Arwanitis wrote:
> 
> Hi there,
> 
> I try to call some system-calls under a windows-environment, but I'm not
> able to make this in "invisible" mode...
> 
> there are calls like:
> os.system(r'rmdir /S /Q C:\arwa\dev\') #clear dir-structure recursive
> 
> or
> 
> os.system(r'copy ..\AccessDB_ORIG\OrigPTC.mdb
> ..\AccessDB_ORIG\PTC-000526.mdb')
> 
> stuff like that :)
> 
> any hints?
> 
> thanks a lot
> (=PA=)
> 
> --
> http://www.python.org/mailman/listinfo/python-list




More information about the Python-list mailing list