[Tutor] a question regarding os.system()

Haiyang haiyang_yang@hotmail.com
Thu, 30 Aug 2001 15:26:23 +0900


Hi there,

I know that we can use os.system() to lauch applications.
Say, I want to use notepad to open a file - data.txt
I should do
os.system('notepad data.txt')

BUT what if  the string 'data.txt' is stored in a variable, how can use
notepad to open it?

file='c:\data\data.txt'
os.system('notepad     and What?

Or, is there anyway to lauch application rather than os.system()

Thanks a million.

Hy