.cost .tgt

General discussion about Train Simulator, your thoughts, questions, news and views!

Moderator: Moderators

Locked
User avatar
smarty2
Very Active Forum Member
Posts: 9976
Joined: Sun Aug 21, 2005 8:16 am
Location: 1963, at Snow Hill!
Contact:

.cost .tgt

Post by smarty2 »

Hi, just a quicky... is it safe to delete these files? I have 17563 of em!! :o
Best Regards
Martin (smarty2)
Non technically minded individual!

Is There A God?
Dudley Bible web page
chrisreb
Very Active Forum Member
Posts: 3134
Joined: Fri Oct 17, 2008 10:48 am
Location: Southampton UK

Re: .cost .tgt

Post by chrisreb »

Pretty sure it is - I have a batch file that does just that that I run from Inside the Assets folder.
gptech
Very Active Forum Member
Posts: 19585
Joined: Fri Oct 10, 2008 5:48 pm
Location: Wakefield, West Yorkshire

Re: .cost .tgt

Post by gptech »

Yep, they're just temporary files created by (I think) modelling programs/image manipulation programs, so getting rid of them does no harm.
User avatar
briyeo1950
Very Active Forum Member
Posts: 1795
Joined: Mon Jul 20, 2009 8:33 pm
Location: Derbyshire

Re: .cost .tgt

Post by briyeo1950 »

Yes I have a batch file in my Assets folder called JUNK, double click it and it removes all such files. someone recently uploaded a similar utility to the library here, it's worth having. I produce hundreds of Bak files when I do repaints. :o
User avatar
Juanillo99
Well Established Forum Member
Posts: 879
Joined: Sat Oct 13, 2012 5:12 pm
Location: Teruel - Spain
Contact:

Re: .cost .tgt

Post by Juanillo99 »

My Spanish website dedicated to Train Simulator 2019: https://ferrosim.es
Image
User avatar
smarty2
Very Active Forum Member
Posts: 9976
Joined: Sun Aug 21, 2005 8:16 am
Location: 1963, at Snow Hill!
Contact:

Re: .cost .tgt

Post by smarty2 »

Thanks gents, off to delete, hopefully reduce the size of my assets folder a bit!
Best Regards
Martin (smarty2)
Non technically minded individual!

Is There A God?
Dudley Bible web page
User avatar
iceman2117
Very Active Forum Member
Posts: 3287
Joined: Thu Dec 27, 2007 1:45 pm
Location: Western Germany

Re: .cost .tgt

Post by iceman2117 »

hi, ...

You can delete this.
I have a Batch File in ASSET Folder.

del /s *.tgt
del /s *.cost
del /s *.bak*
del /s *.xml
del /s *psd
end

g'ice
User avatar
smarty2
Very Active Forum Member
Posts: 9976
Joined: Sun Aug 21, 2005 8:16 am
Location: 1963, at Snow Hill!
Contact:

Re: .cost .tgt

Post by smarty2 »

You can delete .xml files too?? :-?
Best Regards
Martin (smarty2)
Non technically minded individual!

Is There A God?
Dudley Bible web page
gptech
Very Active Forum Member
Posts: 19585
Joined: Fri Oct 10, 2008 5:48 pm
Location: Wakefield, West Yorkshire

Re: .cost .tgt

Post by gptech »

You can delete anything you want (and all too often what you don't want) to with the correct commands in a batch file.
User avatar
mikesimpson
Very Active Forum Member
Posts: 6361
Joined: Mon Dec 03, 2001 12:00 am
Location: Southern Hemisphere Penal Colonies
Contact:

Re: .cost .tgt

Post by mikesimpson »

smarty2 wrote:You can delete .xml files too?? :-?
You will notice that Ice does specify this is for the Assets folder - where .xml files are not used. But remember that .proxyxml files ARE used, so if your batch file is *xml instead of *.xml then you are in deep trouble.

Mike
Mike in OZ - Author of TS-Tools & Route-Riter.
http://www.agenetools.com
I'm not arguing (just explaining why I'm right).
User avatar
smarty2
Very Active Forum Member
Posts: 9976
Joined: Sun Aug 21, 2005 8:16 am
Location: 1963, at Snow Hill!
Contact:

Re: .cost .tgt

Post by smarty2 »

mikesimpson wrote:
smarty2 wrote:You can delete .xml files too?? :-?
You will notice that Ice does specify this is for the Assets folder - where .xml files are not used. But remember that .proxyxml files ARE used, so if your batch file is *xml instead of *.xml then you are in deep trouble.

Mike
Hi Mike, nay worries laddie, i have kept my finger well away from the delete button! :wink:
Best Regards
Martin (smarty2)
Non technically minded individual!

Is There A God?
Dudley Bible web page
User avatar
Ajay1
Very Active Forum Member
Posts: 1685
Joined: Sun Nov 02, 2008 4:37 pm
Location: Wellington,New Zealand

Re: .cost .tgt

Post by Ajay1 »

This little utility looks as though it could be quite useful. Where does one find it ? or how do you go about writing a script up ? , says me who has no knowledge when it comes to computer programming.
cheers,

Antony
Windows 10 Home 64-bit,Intel Core i7-2600 CPU @ 340GHz,
12.00GB RAM, NVDIA GeForce GTX 660Ti
USRailFan
Very Active Forum Member
Posts: 4226
Joined: Wed May 14, 2003 8:07 am
Location: Norway

Re: .cost .tgt

Post by USRailFan »

smarty2 wrote:You can delete .xml files too?? :-?
If they are within the /Assets folder tree, yes. Do NOT delete .xml files _outside_ of the /Assets folder and its subfolders.
I'm not fat - I'm easy to see
Oldpufferspotter
Well Established Forum Member
Posts: 887
Joined: Sun Oct 21, 2007 5:08 pm

Re: .cost .tgt

Post by Oldpufferspotter »

Here's the Batchfile that I use:

@echo off
echo This program will DELETE all .dds .tgt .cost .cost.tgt files
echo in the current folder and its sub-folders.
echo.
echo Check that this batch file is in the correct folder
echo and if so run it now, if not
echo Exit and move this file into the folder
echo from which you want the .tgt etc files to be deleted
echo and run it from there.
echo.
pause
del /s *.dds
del /s *.tgt
del /s *.cost
del /s *.cost.tgt
pause

Simply key in all that and save as a .batch file. I place the batch file on my desk top as the 'master copy'. Then I place another copy of it in the folder that I want to delete the .cost etc files from and run it from there. It will go through that folder and all sub folders within that folder.
regards Ted.
P.S. when the program pauses, press any key to continue, or ESC to exit the program. I notice that Iceman used the instruction 'end' at the end of his batch file, probably a good idea!
Locked

Return to “[TS] General Discussion”