Jump to content

Recommended Posts

Posted

Your request is not quiet clear. Set filepath in the input control (option 1), or display the file content itself (option 2 is one way).

func BatchPath()
    $batchPath = FileOpenDialog("", "C:\", "Batch (*.bat)")
    If not @error Then
        GUICtrlSetData($txtBatchPath,$batchPath) ; Option 1
        ShellExecute($batchPath,'','','edit') ; Option 2
    endif
EndFunc
Posted

Your request is not quiet clear. Set filepath in the input control (option 1), or display the file content itself (option 2 is one way).

func BatchPath()
    $batchPath = FileOpenDialog("", "C:\", "Batch (*.bat)")
    If not @error Then
        GUICtrlSetData($txtBatchPath,$batchPath) ; Option 1
        ShellExecute($batchPath,'','','edit') ; Option 2
    endif
EndFunc

Thanks alot!! Option 1 is what I was looking for.

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
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...