Gamestudio Links
Zorro Links
Newest Posts
AlpacaZorroPlugin v1.3.0 Released
by kzhao. 05/22/24 13:41
Free Live Data for Zorro with Paper Trading?
by AbrahamR. 05/18/24 13:28
Change chart colours
by 7th_zorro. 05/11/24 09:25
Data from CSV not parsed correctly
by dr_panther. 05/06/24 18:50
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
2 registered members (degenerate_762, NewtraderX), 856 guests, and 2 spiders.
Key: Admin, Global Mod, Mod
Newest Members
LucasJoshua, Baklazhan, Hanky27, firatv, wandaluciaia
19054 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 | chip programmers | 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