Rename a file

HARRY

Active Member
Licensed User
Longtime User
Hallo,

I need to rename a file at runtime. Does an equivalent exist for the Name statement of Visual Basic like Name oldpathname As newpathname?

Harry
 

Cableguy

Expert
Licensed User
Longtime User
I Dont think there a direct way of doing that, but you can do it in steps..

Create a copy of the file and then delete the old file...
 

HARRY

Active Member
Licensed User
Longtime User
Thanks Cableguy,

Indeed, that is a solution; however, the file is pretty long and than it takes quite some time to make a copy. So, a direct rename is preferable.

Harry
 

specci48

Well-Known Member
Licensed User
Longtime User
Hi Harry,

if you are not aware of installing another tool on your ppc you could use the freeware Mortscript (http://www.sto-helit.de/)
as an enhancement of the shell command of Basic4ppc.

As I remember a direkt rename of files is available.


specci48
 
Cookies are required to use this site. You must accept them to continue using the site. Learn more…