• Which the release of FS2020 we see an explosition of activity on the forun and of course we are very happy to see this. But having all questions about FS2020 in one forum becomes a bit messy. So therefore we would like to ask you all to use the following guidelines when posting your questions:

    • Tag FS2020 specific questions with the MSFS2020 tag.
    • Questions about making 3D assets can be posted in the 3D asset design forum. Either post them in the subforum of the modelling tool you use or in the general forum if they are general.
    • Questions about aircraft design can be posted in the Aircraft design forum
    • Questions about airport design can be posted in the FS2020 airport design forum. Once airport development tools have been updated for FS2020 you can post tool speciifc questions in the subforums of those tools as well of course.
    • Questions about terrain design can be posted in the FS2020 terrain design forum.
    • Questions about SimConnect can be posted in the SimConnect forum.

    Any other question that is not specific to an aspect of development or tool can be posted in the General chat forum.

    By following these guidelines we make sure that the forums remain easy to read for everybody and also that the right people can find your post to answer it.

BAT file for renaming texture names

Messages
5
Hi

I'm using a modified texture for norwegian markings on the rwy. Problem is, it changes all other standard rwy markings too.

I am probably gonna be laughed at for this, but can anyone write a bat file for me that could switch between the modified one and the original?

The texture in question is the Runway_marks.dds , found in the FSX/Texture folder.

Thanks in Advance :)
 
Scratch that, obviously it wont work renaming textures in the same folder.
So, let me rephrase the original request, I would need a batch file that could copy files.

I'm thinking, 2 seperate folders, one containing the original file and one containing the modified file. Let's call the folders white and yellow, since the origial file has white markings and the modified markings are yellow.

The idea is then to have 2? batch files to copy from those two folders depending on which color marking one wants...or needs.

I've tried making some batchfiles, but have not been successful yet :p
I'd appreciate all help in this regard, it probably is simple, but obviously not for me :(
 
Original.bat
copy Original\Runway_marks.dds Runway_marks.dds

Norwegian.bat
copy Norwegian\Runway_marks.dds Runway_marks.dds

The simple way to do it. A fancier way would likely use renaming and only need one batch file to swap between them.

Edit: Note that the batch file would have to be in the texture folder this way. You could make a shortcut to it and put that elsewhere, or add more path stuff. (Say using full paths, using cd before the copy command, or using relative paths.)
 
Last edited:
Thanks :)

So in essence, I create 2 folders in the textures folder, one named "original" and the other "Norwegian"?

Then I create 2 bat files:

@echo off
copy Original\Runway_marks.dds Runway_marks.dds

and

@echo off
copy Norwegian\Runway_marks.dds Runway_marks.dds

And these 2 should reside in the textures folder

and ofcourse name them appropriatly, creating shortcuts and all, and then I should be good to go?


Just a addon question, is it so that the bat file copies to the folder it resides in?
When I was trying to make them (the ones I was struggeling with) I put in destination for the copy too...could be that that was why I couldn't make it work?

EDIT: I tried, and it worked like a charm, thank you so much for your help :)
 
Last edited:
Back
Top