Jump to content

Recommended Posts

Posted

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]

Posted

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]

Posted (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 by gamerman2360
Posted (edited)

thanks i didnt know you had to have explorer in front of it

Edited 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]

Posted (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 by gamerman2360

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...