Re: How can I use system cmd with variables?
- Posted by Dan Moyer <danielmoyer at pro?ig?.net> Sep 21, 2007
- 525 views
Shawn, Ok, thanks, I didn't know about those routines. I haven't looked at them yet, but the example you provided suggests it will *move* and rename a file, is there one that just renames it? I'm just curious, as the system() command as elaborated by Derek worked fine for what I wanted. Dan Shawn wrote: > > > I think you asked the wrong question. system() puts a > black rectangle on the screen. I would ask how do you > rename files without going through system()? Unless you > are coding for DOS you > can use the ssl.e routines from the archive like this: > > include ssl.e as ssl > > if ssl:move_file( ssl:join( "\\", {folderPathName,oldFileNames[n]} ), > ssl:join( "\\", {folderPathName,newFileNames[n]} ) ) then > -- success > end if > > Shawn Pringle