Results 1 to 3 of 3

Thread: wildcard in preprocess directories? Possible?

  1. #1

    wildcard in preprocess directories? Possible?

    I have a folder called main that holds all the primary scripts that are to be used in my campaign. This folder is located in the scripts folder (so its usable in any mission that I am editing) and Im trying to preprocess all of the files inside this folder (main folder only contains functions and methods declared).

    Im wondering, instead of doing all these preprocessfilelinenumbers statements, can you use wildcards with the command? ie:

    Code:
    call compile preprocessfilelinenumbers "main\*"
    Possible?

  2. #2
    Don't think so.

    But you can autogenerate a file that contain those lines through the command prompt:
    Code:
    for %f IN (*) do echo call compile preProcessFileLineNumbers "main\%f"; >> compile.sqf
    If you cd into a dir (eg. main) with say fileA.sqf and fileB.sqf then it will create file compile.sqf:
    Code:
    call compile preProcessFileLinenumbers "main\fileA.sqf";
    call compile preprocessFileLinenumbers "main\fileB.sqf";
    And so on for all files. If you put the one-liner in a .bat file you may need to use %%f instead of %f.

  3. #3
    Thanks muzzleflash, I didnt think of using a batch file, but I dont have alot of experience in making them. Ill play around with this.

Similar Threads

  1. preprocess function to call inside init line?
    By Igneous01 in forum ARMA 2 & OA : MISSIONS - Editing & Scripting
    Replies: 7
    Last Post: Dec 29 2011, 21:39
  2. Arma 2 and OA in seperate directories
    By 7akata in forum ARMA 2 & OA - GENERAL
    Replies: 2
    Last Post: Sep 8 2010, 20:21

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •