[Help]Deleting files with patch

10/09/2012 16:10 pretzel666#1
Ok so i want it so that when someone runs the patch itll delete folders out and then add the new ones , not just replace because something gets messep up when dealing with .dnps , ty
10/10/2012 15:57 funhacker#2
Quote:
Originally Posted by pretzel666 View Post
Ok so i want it so that when someone runs the patch itll delete folders out and then add the new ones , not just replace because something gets messep up when dealing with .dnps , ty
I'm sure winrar allows this, if not you can write a batch file, then include this into your patch then finnaly have your patch run the batch file upon completing
10/10/2012 19:07 Timore[PM]#3
Yeah, what Funhacker says is the easier way, on the run after opening, Create a batch file to delete files.
Code:
cd FOLDERNAME\DestinationName\
deltree if you are deleting a whole folder, del if you are deleting a file. 
exit
So lets say you want to delete sound\1004.wav
and
music\1000-1.mp3
Your .bat should look like this
Code:
cd \sound
del 1004.wav
cd ..\music
del 1000-1.mp3
cd ..\
del delete.bat
exit
This will delete those files along with the .bat file you made.
Another way you can go about deleting mass files, Like debug logs in the client, is by using wild cards.
Code:
cd debug
del *.txt
del *.log
cd ..\ 
del delete.bat
Now to make a bat file, you just use text file and rename it from
New Document.txt
to
BLAHBLAH.bat
(in this example i renamed it to delete.bat)
Then you set it up in winrar to run before or after the patch has run.
10/11/2012 14:21 hio77#4
interms of files not being updated, ild look at UAC as your problem here, i recall facing many issues with this..

as for dnps, while files exactly are you toying with? ild hope you're not planning on deleting someones data/c3.dnp and replacing it, that would be one patch i would be none too impressed with doing..

as stated here, batchfiles to delete things, i personally have done this a few times.

if you're purely trying to remove a file because UAC is blocking the overwriting, you need to look at your client environment first as clearly that could be improved and provide you without a need to take other actions.

derailing a tad here..

overall, if the patcher isnt working how you want it to work, you're r welcome to rebuild the patcher into something decent ... the use of SFX archives is rather sad on TQs part, if you look back when celeb was added? there was a reasonably small patch for the maps and all. this was due to them using a SFX rar, which then ran a SFX 7zip.

the daisy chaining of SFX's like this is asking for trouble really..

also, bitwise patchers would be nice :3 of course they involve a lot of work, even not many MMOs use bitwise still.. FAR more easy to just replace thing..
10/12/2012 06:12 pretzel666#5
Quote:
Originally Posted by hio77 View Post
interms of files not being updated, ild look at UAC as your problem here, i recall facing many issues with this..

as for dnps, while files exactly are you toying with? ild hope you're not planning on deleting someones data/c3.dnp and replacing it, that would be one patch i would be none too impressed with doing..

as stated here, batchfiles to delete things, i personally have done this a few times.

if you're purely trying to remove a file because UAC is blocking the overwriting, you need to look at your client environment first as clearly that could be improved and provide you without a need to take other actions.

derailing a tad here..

overall, if the patcher isnt working how you want it to work, you're r welcome to rebuild the patcher into something decent ... the use of SFX archives is rather sad on TQs part, if you look back when celeb was added? there was a reasonably small patch for the maps and all. this was due to them using a SFX rar, which then ran a SFX 7zip.

the daisy chaining of SFX's like this is asking for trouble really..

also, bitwise patchers would be nice :3 of course they involve a lot of work, even not many MMOs use bitwise still.. FAR more easy to just replace thing..
i recreated the paladin3 wings thats why i need the dnps replaced