• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.

[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