Skip to content

Instantly share code, notes, and snippets.

@blurymind
Created July 13, 2016 23:51
Show Gist options
  • Save blurymind/02325f99edd446009834cbddecf02212 to your computer and use it in GitHub Desktop.
Save blurymind/02325f99edd446009834cbddecf02212 to your computer and use it in GitHub Desktop.
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