Way to rename file in VBScript?

This forum is meant for requesting technical support or reporting bugs.

Moderators: time-killer-games, Vengeance66, Candle, reneuend, GM-Support

Way to rename file in VBScript?

Postby CBSection31 » Thu Feb 11, 2010 8:03 pm

Is there a way to rename a file in the Areas folder via VBScript? Specifically, I need to change the file's extension while my game is running. Is this at all possible? Thanks! :)
CBSection31
Code Master
 
Posts: 564
Joined: Tue Jun 10, 2003 4:00 am

Postby Mystery » Thu Feb 11, 2010 10:22 pm

Wow, an interesting question :shock:
I have no idea, but it might be a problem in Vista anyway due to privileges :?
User avatar
Mystery
Forum Admin and Games Page admin
 
Posts: 2990
Joined: Sat Feb 04, 2006 8:12 am
Location: Switzerland

Postby Lyberodoggy » Thu Feb 11, 2010 10:30 pm

if reneuend finalizes his way to read/write files it could be possible.
User avatar
Lyberodoggy
Administrator
 
Posts: 2526
Joined: Sat Feb 17, 2007 3:31 pm
Location: Athens

Postby ShadowHunter » Fri Feb 12, 2010 7:57 am

Hi,

This is already possible for many years by using my CommonDialog Plugin :D

Install the plugin and use the following methode:

RenameFile(OldName, NewName)

Easy as that :D

Check it on my website... and please let me know if it worked for you.

With best regards,

ShAdOwHuNtEr
User avatar
ShadowHunter
Forum Admin and Games Page admin
 
Posts: 1304
Joined: Fri Jun 06, 2003 10:37 pm
Location: Belgium

Postby CBSection31 » Fri Feb 12, 2010 7:48 pm

Oh wow, I have never even tried that plugin. Thanks, Shadowhunter! :D
CBSection31
Code Master
 
Posts: 564
Joined: Tue Jun 10, 2003 4:00 am

Postby ShadowHunter » Sat Feb 13, 2010 10:17 am

Hi,

It's not a plugin that has a daily use, but can proof its use in some projects :D

Hope it works for you

With best regards,

ShAdOwHuNtEr
User avatar
ShadowHunter
Forum Admin and Games Page admin
 
Posts: 1304
Joined: Fri Jun 06, 2003 10:37 pm
Location: Belgium


Return to Adventure Maker Technical Support and Bug Reports

Who is online

Users browsing this forum: No registered users and 0 guests

cron