Gamestudio Links
Zorro Links
Newest Posts
Zorro 2.70
by jcl. 09/29/25 09:24
optimize global parameters SOLVED
by dBc. 09/27/25 17:07
ZorroGPT
by TipmyPip. 09/27/25 10:05
assetHistory one candle shift
by jcl. 09/21/25 11:36
Plugins update
by Grant. 09/17/25 16:28
AUM Magazine
Latest Screens
Rocker`s Revenge
Stug 3 Stormartillery
Iljuschin 2
Galactic Strike X
Who's Online Now
3 registered members (Grant, TipmyPip, AndrewAMD), 12,724 guests, and 5 spiders.
Key: Admin, Global Mod, Mod
Newest Members
krishna, DrissB, James168, Ed_Love, xtns
19168 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Copy a file from one place and save to another with C-Script? #213791
06/30/08 21:30
06/30/08 21:30
Joined: Feb 2002
Posts: 288
California, USA
J
jaknine Offline OP
Member
jaknine  Offline OP
Member
J

Joined: Feb 2002
Posts: 288
California, USA
This is probably something very simple that I'm just missing for some reason, but here's what I need to do...

During run-time I want to copy an image file from one folder in the game directory to the main game folder and rename the file in the process. Also, if the file already exists in the game folder then it should be overwritten with the new one being copied in.

For some reason I can't figure out how to do this without executing a batch file in the background. Is there some way to do it with C-Script?

Re: Copy a file from one place and save to another with C-Script? [Re: jaknine] #213797
06/30/08 22:04
06/30/08 22:04
Joined: Nov 2007
Posts: 1,143
United Kingdom
DJBMASTER Offline
Serious User
DJBMASTER  Offline
Serious User

Joined: Nov 2007
Posts: 1,143
United Kingdom
you can use file_cpy and file_rename for what you are trying to do. Just add the path where your file is and it will automatically be found and moved.

Last edited by DJBMASTER; 06/30/08 22:04.
Re: Copy a file from one place and save to another with C-Script? [Re: DJBMASTER] #213800
06/30/08 22:26
06/30/08 22:26
Joined: Feb 2002
Posts: 288
California, USA
J
jaknine Offline OP
Member
jaknine  Offline OP
Member
J

Joined: Feb 2002
Posts: 288
California, USA
Awesome, thanks. I looked all through the manual and totally missed those. I knew something like that had to be in there somewhere, hahaha.


Gamestudio download | Zorro platform | shop | Data Protection Policy

oP group Germany GmbH | Birkenstr. 25-27 | 63549 Ronneburg / Germany | info (at) opgroup.de

Powered by UBB.threads™ PHP Forum Software 7.7.1