Created
July 13, 2016 23:51
-
-
Save blurymind/02325f99edd446009834cbddecf02212 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
extends Node2D | |
var arguments = [] | |
var output = [] | |
#This script should open your file manager in disk C: on start | |
#Its the equivalent of doing 'start C:\' in the CMD | |
# The start command (when working) can be used to open any file type with the default software that | |
#is assigned to it. In this case it opens a directory (default - file explorer) for sake of example. | |
func _ready(): | |
arguments.append('C:\\') | |
OS.execute('start',arguments,true,output) | |
print (output) | |
# works with calc - but not with 'start' | |
#OS.execute('calc',arguments,true,output) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment