Message 1 of 8
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hello
Thankyou for this code which will open the file location using Windows File Explorer.
How can it be tweaked to open the file location within the Inventor 'File Explorer' window*?
Sub Main()
'Copy the path of the current model to oPath
oPath = ThisDoc.Path
'[Now we want to open this path with Explorer.exe. We can use the Process.Start function for this.
'The Start function needs to know which application it'll launch and what arguments it requires.
']oPath is already a string but the Start function needs this: [Start(Explorer.exe "C:/Filepath/")]
Dim Proc As String = "Explorer.exe"
Dim Args As String = ControlChars.Quote & oPath & ControlChars.Quote
Process.Start(Proc, Args)
End Sub
Inventor 'File Explorer' window - this one...
Regards
Andrew
Solved! Go to Solution.