Empirisoft Support

    Welcome to Empirisoft Support
Results 1 to 9 of 9

Thread: changing file paths

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #9
    Join Date
    Mar 2009
    Posts
    401
    Ok - let's see here...

    I've completed and attached a tool that should hopefully make your task a lot easier. Essentially, it's a 'Find & Replace' tool. It works by simply taking input for the string you want it to find, input for the string you want the found text to be replaced with, and the directory where you want files with a .que or .exp extension to be altered. The software recursively sorts through each subdirectory within the folder you denote. This means that choosing say the directory C:\ as your base folder would be a bad idea - as the software would sort through every folder on the drive, and search through any files with an extension of .exp and .que . Rather, select the folder that contains the files with text you want altered (ie. C:\MediaLab\Samples\Sample1).

    First, download and install the .Net 2.0 Framework: http://www.microsoft.com/downloads/d...displaylang=en
    Next, download the attached .Zip and run the .EXE .

    Que Files Replace:
    - Question Wording / File Name
    - Name
    - BackImage
    - BackSound
    - BackVideo
    - Parameters
    - Filename
    - OmitConditions


    Exp Files Replace:
    - File Name
    - BackImage
    - BackSound
    - BackVideo
    - Parameters


    Warning: Searching for simple text to replace may lead to replacements to occur that you did not intend to happen. For example, requesting that all instances of the word 'and' are replaced with 'C:\MediaLab\Samples\Sample1', could cause for many more replacements to take place than you may have wanted.
    Warning: The software will search through ANY folder that is contained within the Data Location. For instance, if you choose to use the folder "C:\Program Files" - it will search through EVERY folder within the Program Files directly, opening and altering any .que/.exp file it can find. Make sure you only select the specified data folder for the experiment that contains the .que/.exp files you want to edit.
    Warning: Make sure you don't have any of the files open before executing the 'Process' button.

    Here's an example of the input I've used:
    Find: find this text
    Replace: replace it with this text
    Directory: C:\MediaLab\Samples\Sample1



    The above input will replace any occurrences of the text 'find this text' with the text 'replace it with this text' in each .que and .exp file that it can find within the directory: C:\MediaLab\Samples\Sample1 .

    It should also be noted that it is -highly- suggested that you back up your files before executing this code. Please ask any questions you may have before using the software (if you have any).

    ---

    In regards to the monitor issue, see the following thread: http://www.empirisoft.com/support/showthread.php?t=389
    Attached Files Attached Files
    Last edited by Trevor Newell; 08-04-2009 at 04:51 PM.

Similar Threads

  1. Changing background color for different questionnaires
    By lisa7174 in forum MediaLab Older Versions: How Do I...
    Replies: 2
    Last Post: 10-14-2023, 01:56 AM
  2. changing the location of the open ended response box
    By greenlab in forum DirectRT Older Versions: General Questions
    Replies: 2
    Last Post: 04-21-2009, 03:57 AM
  3. Changing the pre-set instruction messages into Spanish
    By austinkr in forum MediaLab Older Versions: General Questions
    Replies: 1
    Last Post: 02-25-2008, 03:49 PM
  4. Background colour preference - changing default
    By sheavesbc in forum MediaLab Older Versions: Troubleshooting
    Replies: 2
    Last Post: 02-06-2008, 12:09 PM
  5. changing features of Participant's represented response
    By baruche in forum MediaLab Older Versions: How Do I...
    Replies: 1
    Last Post: 05-01-2006, 11:06 AM

Posting Permissions

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