Re: How can I use system cmd with variables?

new topic     » goto parent     » topic index » view thread      » older message » newer message

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

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu