Read Current Directory

Post here if you need help using Actiona
Post Reply
theoth
Posts: 6
Joined: 10 Dec 2017, 01:00

Read Current Directory

Post 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
DanRobott
Posts: 3
Joined: 29 Nov 2017, 14:23

Re: Read Current Directory

Post 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.
Post Reply