Working Directory


Author
Message
CES
CES
Distinguished Member (3.6K reputation)Distinguished Member (3.6K reputation)Distinguished Member (3.6K reputation)Distinguished Member (3.6K reputation)Distinguished Member (3.6K reputation)Distinguished Member (3.6K reputation)Distinguished Member (3.6K reputation)Distinguished Member (3.6K reputation)Distinguished Member (3.6K reputation)
Group: Forum Members
Posts: 24, Visits: 103
I apologize if this has been asked before, but I couldn't locate a similar thread. Is there a method for acquiring the working directory dynamically within Inquisit 3? For example, if I were using the htmlpage element, and wanted to make the path dynamic in order to facilitate the movement of files across computers?
Thanks  so much.

Dave
Dave
Supreme Being (855K reputation)Supreme Being (855K reputation)Supreme Being (855K reputation)Supreme Being (855K reputation)Supreme Being (855K reputation)Supreme Being (855K reputation)Supreme Being (855K reputation)Supreme Being (855K reputation)Supreme Being (855K reputation)
Group: Administrators
Posts: 10K, Visits: 59K
While you cannot acquire the working directory in Inquisit syntax, you can specify relative paths. That allows you to simply move the main folder containing the scripts and associated files from machine to machine without any adjustments. Example attached, make sure to extract the full folder structure.

With the script residing in "mainfolder" and the HTML file(s) in "subfolder", the code simply boils down to:

<expt>
/ preinstructions = (mypage)
</expt>

<htmlpage mypage>
/ file = "subfolder\myhtml.html"
</htmlpage>

Attachments
Mainfolder.zip (164 views, 761 bytes)
GO

Merge Selected

Merge into selected topic...



Merge into merge target...



Merge into a specific topic ID...




Reading This Topic

Explore
Messages
Mentions
Search