Vindicator209 Posted October 8, 2006 Share Posted October 8, 2006 Anyone know a way how I would go about opening a folder with auto it? Ive tried having the script run a .bat file to open it, of course, with no success [center]"When you look at old, classic games like Snake, you often put it off because it's such a simple game, but it's only when you actually try and create your own unique game from scratch, do you finally appreciate those games."[/center][center]Don't ask for answers if you haven't TRIED yet![/center][center]Most answers can be answered in the help file! Use it![/center] Link to comment Share on other sites More sharing options...
Vindicator209 Posted October 8, 2006 Author Share Posted October 8, 2006 if not, perhaps a way to open a short cut? [center]"When you look at old, classic games like Snake, you often put it off because it's such a simple game, but it's only when you actually try and create your own unique game from scratch, do you finally appreciate those games."[/center][center]Don't ask for answers if you haven't TRIED yet![/center][center]Most answers can be answered in the help file! Use it![/center] Link to comment Share on other sites More sharing options...
gamerman2360 Posted October 8, 2006 Share Posted October 8, 2006 (edited) Open, as in, get info from?: FileRead("test"); returns "text in the file", (just an example, i know it has nothing to do with folders) Or open as in displaying the contents in a window?: Run('explorer C:\folder\dir') Edit: shortcuts can be read with: FileGetShortcut() and set with FileCreateShortcut() I'm not exactly sure what you want. Edited October 8, 2006 by gamerman2360 Link to comment Share on other sites More sharing options...
Vindicator209 Posted October 8, 2006 Author Share Posted October 8, 2006 (edited) thanks i didnt know you had to have explorer in front of it Edited October 8, 2006 by MethodZero [center]"When you look at old, classic games like Snake, you often put it off because it's such a simple game, but it's only when you actually try and create your own unique game from scratch, do you finally appreciate those games."[/center][center]Don't ask for answers if you haven't TRIED yet![/center][center]Most answers can be answered in the help file! Use it![/center] Link to comment Share on other sites More sharing options...
gamerman2360 Posted October 8, 2006 Share Posted October 8, 2006 (edited) What the Run() did is it started up the explorer.exe in your system folder(it dosnt need the location or file type suffix because of an environment var) with the argument to open. It then found out how to open what you passed to it. (It works webpages and files, too.) Edited October 8, 2006 by gamerman2360 Link to comment Share on other sites More sharing options...
Helge Posted October 8, 2006 Share Posted October 8, 2006 ShellExecute() in the newest betas. 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