I've made a simple script which asks questions, and writes the answers into a file (Answers.txt) However, the only way I get it to work is to define the entire path, e.g. C:\folder\Answe rs.txt
But Answers.txt can be in different folders depending on where users have installed it, so I'm wondering if I can make the script search within its own folder? That way people would be able to simply place the two in the same folder and not have to rewrite the pathing.
I tried simply writing into \Answers.txt but it didn't work. It seems to find the file, but doesn't write to it.
But Answers.txt can be in different folders depending on where users have installed it, so I'm wondering if I can make the script search within its own folder? That way people would be able to simply place the two in the same folder and not have to rewrite the pathing.
I tried simply writing into \Answers.txt but it didn't work. It seems to find the file, but doesn't write to it.
Comment