AnthonyBF2 Posted August 28, 2016 Share Posted August 28, 2016 Greetings, first let me say I love Au3 so far and look forward to learning as much as possible. At the time I am still a noob and need help with something I am sure is simple but out of my reach currently. I want to run an executable file located in the current user's appdata directory. At the time, I have my program setup where if I click a button, it will run the desired executable file, but only if I use a direct path as noted below; C:\Users\Anthony\AppData\Roaming\GameRanger\GameRanger\GameRanger.exe What I need is to get it to detect the current user because more than likely... everyone's computer isn't named Anthony. Link to comment Share on other sites More sharing options...
argumentum Posted August 28, 2016 Share Posted August 28, 2016 (edited) click on this @AppDataDir. Edited August 28, 2016 by argumentum Follow the link to my code contribution ( and other things too ). FAQ - Please Read Before Posting. Link to comment Share on other sites More sharing options...
TheDcoder Posted August 29, 2016 Share Posted August 29, 2016 2 hours ago, AnthonyBF2 said: GameRanger Hi Anthony, Is GameRanger a game? EasyCodeIt - A cross-platform AutoIt implementation - Fund the development! (GitHub will double your donations for a limited time) DcodingTheWeb Forum - Follow for updates and Join for discussion Link to comment Share on other sites More sharing options...
iamtheky Posted August 29, 2016 Share Posted August 29, 2016 16 minutes ago, TheDcoder said: Hi Anthony, Is GameRanger a game? Its a platform, like steam except without the varied content. AnthonyBF2 1 ,-. .--. ________ .-. .-. ,---. ,-. .-. .-. .-. |(| / /\ \ |\ /| |__ __||| | | || .-' | |/ / \ \_/ )/ (_) / /__\ \ |(\ / | )| | | `-' | | `-. | | / __ \ (_) | | | __ | (_)\/ | (_) | | .-. | | .-' | | \ |__| ) ( | | | | |)| | \ / | | | | | |)| | `--. | |) \ | | `-' |_| (_) | |\/| | `-' /( (_)/( __.' |((_)-' /(_| '-' '-' (__) (__) (_) (__) Link to comment Share on other sites More sharing options...
TheDcoder Posted August 29, 2016 Share Posted August 29, 2016 Oh, ok... was wondering if it would break the "Game automation" rule. EasyCodeIt - A cross-platform AutoIt implementation - Fund the development! (GitHub will double your donations for a limited time) DcodingTheWeb Forum - Follow for updates and Join for discussion Link to comment Share on other sites More sharing options...
AnthonyBF2 Posted August 29, 2016 Author Share Posted August 29, 2016 4 hours ago, argumentum said: click on this @AppDataDir. I am just trying to make a shortcut application that has buttons that leads to different things like Skype, Steam, etc. I never liked pinning shortcuts all over my desktop or toolbars. Link to comment Share on other sites More sharing options...
argumentum Posted August 29, 2016 Share Posted August 29, 2016 5 hours ago, AnthonyBF2 said: C:\Users\Anthony\AppData\Roaming\GameRanger\GameRanger\GameRanger.exe What I need is to get it to detect the current user because more than likely... everyone's computer isn't named Anthony. @AppDataDir will give you that, use as @AppDataDir & "\GameRanger\GameRanger\GameRanger.exe" in your shortcut. You can find examples in the help file. AnthonyBF2 1 Follow the link to my code contribution ( and other things too ). FAQ - Please Read Before Posting. Link to comment Share on other sites More sharing options...
AnthonyBF2 Posted August 30, 2016 Author Share Posted August 30, 2016 22 hours ago, argumentum said: @AppDataDir will give you that, use as @AppDataDir & "\GameRanger\GameRanger\GameRanger.exe" in your shortcut. You can find examples in the help file. Thank you very much! It works well. argumentum 1 Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now