| View previous topic :: View next topic   | 
	
	
	
		| Author | 
		Message | 
	
	
		Shahryar Advanced Cheater
  Reputation: 0
  Joined: 11 Jun 2011 Posts: 85
 
  | 
		
			
				 Posted: Mon Oct 01, 2012 11:31 am    Post subject: Question about shellExecute | 
				       | 
			 
			
				
  | 
			 
			
				Hello guys.
 
Long before I've been a post here that I had a problem with following code.
 
 	  | Code: | 	 		  | shellExecute(command, parameters OPTIONAL, folder OPTIONAL, showcommand OPTIONAL) | 	  
 
 
when I use it to run a game, the game crashes because I didn't know how can I give the game folder path to shellExecute and I used following code.
 
 	  | Code: | 	 		  | local f = shellExecute(filetolaunch); | 	  
 
Now I'm going to use this code. My question is how can I give the game folder path to shellExecute.
 
For Example my game path is "G:\Games Folder\Mass Effect 3\Binaries\Win32\MassEffect3.exe" and folder path is "G:\Games Folder\Mass Effect 3\Binaries\Win32\".
 
so I want to know how can I give the folder path to shellExecute.
 
Please help me, I'll give you Reputation  .
 | 
			 
		  | 
	
	
		| Back to top | 
		 | 
	
	
		  | 
	
	
		Dark Byte Site Admin
  Reputation: 470
  Joined: 09 May 2003 Posts: 25807 Location: The netherlands
  | 
		
			
				 Posted: Mon Oct 01, 2012 12:00 pm    Post subject:  | 
				       | 
			 
			
				
  | 
			 
			
				Give the gamefolder as folder parameter. Just leave the parameters field an empty string
 _________________
 Do not ask me about online cheats. I don't know any and wont help finding them.
 
 
Like my help? Join me on Patreon so i can keep helping  | 
			 
		  | 
	
	
		| Back to top | 
		 | 
	
	
		  | 
	
	
		Shahryar Advanced Cheater
  Reputation: 0
  Joined: 11 Jun 2011 Posts: 85
 
  | 
		
			
				 Posted: Mon Oct 01, 2012 12:34 pm    Post subject:  | 
				       | 
			 
			
				
  | 
			 
			
				| Can you tell me how?
 | 
			 
		  | 
	
	
		| Back to top | 
		 | 
	
	
		  | 
	
	
		Zadkos How do I cheat?
  Reputation: 0
  Joined: 20 Mar 2010 Posts: 9
 
  | 
		
			
				 Posted: Sat Oct 27, 2012 6:01 pm    Post subject: shellExecute, createProcess | 
				       | 
			 
			
				
  | 
			 
			
				Don't forget to use "\\" instead of "\".
 
Try this:
 
 	  | Code: | 	 		  | shellExecute("MassEffect3.exe",nil,"G:\\Games Folder\\Mass Effect 3\\Binaries\\Win32") | 	  
 
 
or
 
 
 	  | Code: | 	 		  | shellExecute("MassEffect3.exe",nil,[[G:\Games Folder\Mass Effect 3\Binaries\Win32]]) | 	  
 
 
Alternatively you could use the createProcess command like:
 
 	  | Code: | 	 		  | createProcess([[G:\Games Folder\Mass Effect 3\Binaries\Win32\MassEffect3.exe]]) | 	  
 
 
Hope this helps.
 | 
			 
		  | 
	
	
		| Back to top | 
		 | 
	
	
		  | 
	
	
		 |