Reveal in Find on Windows
Sannyasin Brahmanathaswami
brahma at hindu.org
Wed Feb 22 22:06:11 EST 2017
this is what I have so far…
command openWorkingFolderInFinder pFolderFile
set the itemdel to "/"
put pFolderFile into sRootFolder
delete item -1 of sRootFolder
switch platform()
case "MacOS"
put ("open " & quote & sRootFolder & quote) into tShell
break
case "Win32"
put ("explorer.exe /n/root," & tRootfolder) into tShell
break
end switch
get shell(tShell)
end openWorkingFolderInFinder
Can anyone test if this opens a folder on Windows?
tks
On 2/22/17, 4:59 PM, "use-livecode on behalf of Sannyasin Brahmanathaswami via use-livecode" <use-livecode-bounces at lists.runrev.com on behalf of use-livecode at lists.runrev.com> wrote:
OK I studied the doc here:
https://support.microsoft.com/en-us/help/130510/command-line-switches-for-windows-explorer
and actually the use cases are more often to open a folder
but I don't have windows to test
does this work to open a folder window on Win32?
get shell (”explorer.exe /n,/root,c:\windows\system32\my-project-folder")
BR
On 2/22/17, 1:54 AM, "use-livecode on behalf of Roger Eller via use-livecode" <use-livecode-bounces at lists.runrev.com on behalf of use-livecode at lists.runrev.com> wrote:
get shell (”explorer.exe /select,c:\windows\system32\selected_file.txt")
Source:
http://stackoverflow.com/questions/29970897/cmd-file-tasks-open-directory-and-select-file
~Roger
More information about the use-livecode
mailing list