Page 1 of 1

Read Current Directory

Posted: 10 Dec 2017, 01:03
by theoth
Hey,
so I coded something using Actiona, and im using a .ini file as a config file for the program, but I cant make actiona get the current directory, so I can just have the .ini file in the same folder with the script for it to be read.
right now I have it hardcoded to read the .ini from C:/, but I would like the user of my script to put it wherever they want.
Thanks for any help in advance

Re: Read Current Directory

Posted: 17 Jan 2018, 15:57
by DanRobott
Easy!

1) Create a variable to store the directory

2) Action: "Read Environment Variable", then choose one input paramenter, like "SystemDrive" and set the output var, the same on the first step.