Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Newcomers DBPro Corner / Please Help Copying Files

Author
Message
Random 69
21
Years of Service
User Offline
Joined: 24th Aug 2004
Location: Marshmellowland
Posted: 14th Nov 2004 03:02
I need help what i am trying to do is: Change the pictures in a 2d game to look cooler so i have the picture and then there is the game pictures but i dont no the code to copy the pictures i want to overwrite the picture in the game folder (C:\program files\nightmist) they are all ID numbered

So i want to Make it so the user types in the ID number of the picture he wants to change then the ID number of the picture he wants to change it to? so could someone set something up so whenu type in a id number it copies that id number into the games id number

i no its really confusing but i want the user to type in a number of the id he wants to change then the number of id he wants to change to then it copies over that can someone give me general code

please and thank you.

I need models email me
Mentor
23
Years of Service
User Offline
Joined: 27th Aug 2002
Location: United Kingdom
Posted: 14th Nov 2004 03:19 Edited at: 14th Nov 2004 05:20
you mean like

print "target file"
input a
print "file required"
input b
delete file "c:programfolderimages"+str$(a)
copy file "images"+str$(b),"c:programfolderimages"+str$(a)

will copy and rename the new file to the same name as the old file after deleting it?, if you want to keep the original then use a rename file command instead of the erase file command , explain some more and I can maybe help more, example filenames for instance?

Mentor.

[edited] got my variables back to front. sorry swapped a and b in last line.

PC1: P4 3ghz, 1gig mem, 3x160gig hd`s, Radeon 9800pro w cooler (3rd gfx card), 6 way speakers.
PC2: AMD 2ghz, 512mb ram, FX5200 ultra, 16 bit SB.
Mini ATX cases suck.
Random 69
21
Years of Service
User Offline
Joined: 24th Aug 2004
Location: Marshmellowland
Posted: 14th Nov 2004 04:03
thats it i think exactly u rule wow ure the bomb diggity Hhehe

thanks u rule

I need models email me

Login to post a reply

Server time is: 2026-07-26 01:26:22
Your offset time is: 2026-07-26 01:26:22