Gamestudio Links
Zorro Links
Newest Posts
loading historical data 1st time
by AndrewAMD. 04/14/23 12:54
Trade at bar open
by juanex. 04/13/23 19:43
Bug in Highpass2 filter
by rki. 04/13/23 09:54
Adding Limit Orders For IB
by scatters. 04/11/23 16:16
FisherN
by rki. 04/11/23 08:38
AUM Magazine
Latest Screens
SHADOW (2014)
DEAD TASTE
Tactics of World War I
Hecknex World
Who's Online Now
1 registered members (Grant), 999 guests, and 2 spiders.
Key: Admin, Global Mod, Mod
Newest Members
rki, FranzIII, indonesiae, The_Judge, storrealba
18919 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