Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Python > Re: Windows subprocess.call problem

Reply
Thread Tools

Re: Windows subprocess.call problem

 
 
Dave Angel
Guest
Posts: n/a
 
      01-21-2013
On 01/21/2013 06:25 AM, Tom Borkin wrote:
> Hi;
> I have this code:
> <snip>
> for song in my_songs:
> subprocess.call(['notepad.exe', '%s.txt' % song])
> print song
>
> It opens the first song and hangs on subsequent songs. It doesn't open the
> next song or execute the print until I have closed the first one. I want it
> to open all in the list, one after another, so I have all those songs
> available. Please advise.


Why not just pass all the filenames as parameters in one invocation of
notepad? Assuming Notepad is written reasonably, that'll give it all to
you in one window, instead of opening many separate ones.


--
DaveA
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Changing Windows logon Screen in Windows 7 and Windows 2008 Tech Guy Windows 64bit 0 04-27-2011 12:59 PM
!Windows Live Mail replace Outlook Express on Windows XP and Windows Mail on Vista... Max Burke NZ Computing 8 05-18-2007 12:10 AM
Problem with Mozilla on Windows XP: multiple browser windows David Arnstein Computer Support 0 09-23-2005 07:43 PM
solved: Due to an unidentified problem, Windows cannot display Windows Firewall Settings jameshanley39@yahoo.co.uk Computer Information 0 01-10-2005 12:09 AM
Problem moving applications from Windows XP Pro to Windows 2003 Server Michael Johnson Sr. ASP .Net 0 02-04-2004 07:04 AM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57