New topic: Using Shell with For Next Loop
<http://forums.realsoftware.com/viewtopic.php?t=29743> Page 1 of 1 [ 1 post ] Previous topic | Next topic Author Message rbasic20091005153 Post subject: Using Shell with For Next LoopPosted: Wed Aug 26, 2009 5:55 am Joined: Sat Apr 04, 2009 5:10 pm Posts: 270 Hola, I wonder if it's possible to use a Shell command repeatedly with a For ... Next loop? The following is a short version of my Shell code. Code:Dim myShell As Shell Dim i,Num As Integer myShell=New Shell myShell.Mode=0 Num=Val(DiscNumField.Text) For i=1 to Num myShell.Execute "hdiutil create "+" "+Window1.MyFolder23b.ShellPath+"/"+DiscNameField.Text+DiscNumField.Text Next i This code works, but it will only run once, creating just one disc image regardless of Num. Thank you for your advice. Tom _________________ Mac OS X 10.5.6/REALBasic 2008 R4 I say 'no' to MBS plug-ins. I boycott them. Top Display posts from previous: All posts1 day7 days2 weeks1 month3 months6 months1 year Sort by AuthorPost timeSubject AscendingDescending Page 1 of 1 [ 1 post ] -- Over 1500 classes with 29000 functions in one REALbasic plug-in collection. The Monkeybread Software Realbasic Plugin v9.3. http://www.monkeybreadsoftware.de/realbasic/plugins.shtml [email protected]
