• 🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!

[Solved] Import all script files of a folder.

Status
Not open for further replies.
I don't think.

But maybe something else helps a bit.
You can create an empty file and make it extend ".bat".
Put it inside your scripts folder, and "Edit As Text".
Then one can write in:
Code:
@echo off
for %%i in (*.j*) do echo //! import "%%i">> AllScripts
then if you run it, it goes through all .j files in the folder and writes the correct import command into "AllScripts" file. (will get auto created)
 
Last edited:
Where to search can be defined, and then it will always also automaticaly look in sub folders, example:

Code:
@echo off
for /r C:\Users\Flux\Desktop %%i in (*.j) do (
    echo //! import "%%i">> AllScripts
)
^just everything on desktop, and folders inside desktop.

I removed a "*" after ".j" , it was a mistake and made also find all files with "jpg" or so. now only ".j" works.
 
Status
Not open for further replies.
Top