Cheat Engine Forum Index Cheat Engine
The Official Site of Cheat Engine
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 


HOW TO SPECIFY PC NAME

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> Cheat Engine
View previous topic :: View next topic  
Author Message
WALLED
!BEWARE! Deletes post on answer
Reputation: 0

Joined: 17 Feb 2020
Posts: 9

PostPosted: Mon Mar 23, 2020 3:13 pm    Post subject: HOW TO SPECIFY PC NAME Reply with quote

Hello,

I want to do like shellExecute and it will open the specified file, it will open the file in %temp% folder, but the full location is C:\Users\WALLED\AppData\Local\Temp, i wanna do like there if someone click on the shellExecute button it will open his file in %temp%, but i cant do that because there's PC name like WALLED, and his name is different. Any ways to do like if someone clicks on the button from different pc it will open like C:\Users\Guy1\AppData\Local\Temp
C:\Users\Guy2\AppData\Local\Temp
C:\Users\Guy3\AppData\Local\Temp
and etc. Any solutions?
Back to top
View user's profile Send private message
Corroder
Grandmaster Cheater Supreme
Reputation: 33

Joined: 10 Apr 2015
Posts: 1284

PostPosted: Mon Mar 23, 2020 6:19 pm    Post subject: Reply with quote

Code:
local user = os.getenv("USERPROFILE") .. "\\AppData\\Local\\Temp"
print( user )

_________________
Stealing Code From Stolen Code...
And Admit It.. Hmmm....Typically LOL
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Cheat Engine Forum Index -> Cheat Engine All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group

CE Wiki   IRC (#CEF)   Twitter
Third party websites