Ask a Question related to Macromedia Director Lingo, Design and Development.

  1. #1

    Default Re: Open folder?

    Once the folder is copied OK, you can open it (Windows) with:

    open "path to folder" with "explorer.exe"


    --
    Bertil Flink
    Creative Media




    "Nomenclature" <webforumsuser@macromedia.com> skrev i meddelandet
    news:bjl8c8$97e$1@forums.macromedia.com...
    > I have a button, that when hit copies a folder from CD to the selected
    destination on the users hard drive, using FileXtra4... What I can't seem to
    do, is automatically open the folder that was copied to the HD after writing
    has completed... is there a way to do this with FileXtra that I haven't been
    able to find, or via straight lingo?
    >
    >

    Bertil Flink Guest

  2. Similar Questions and Discussions

    1. just open a folder
      how can i open a folder with lingo... ....i mean just open and view from windows a specific folder thank you
    2. pdf will open in a folder but not through IE Browser
      I have a pdf burned on a CD. It has a link in an html page. When the link is pressed I receive an acrobat.exe error message. If I explore the CD...
    3. open a zip file or folder from a CD
      I created a CD with an autorun file that launches a Director interface when the CD is inserted. On the Director interface I would like to have a...
    4. Open Folder (Mac & PC)
      Is there a way to have director open Windows Explorer and the equivelent on the Mac. I need to build a crossplatform disc that launches a simple...
    5. Folder stays open?? Help!
      In my local site view, File listing, I have one folder which opens any time the view is refreshed. I close it, and it pops open again if I expand...
  3. #2

    Default Re: Open folder?

    Continued from my last post:

    Here some more info from my code lib:

    -------------------------------------------------------------
    on openFolder theDir, theArgs
    -- /n = new window
    -- /e = explorer mode (split)

    aSep = ""
    if (theArgs.char[theArgs.length] <> ",") then aSep = ","

    theString = "EXPLORER.EXE" && theArgs & aSep && theDir

    baRunProgram(theString, "normal", false )
    end

    --Example Call:
    --
    --theDir = "C:\Documents and Settings\Bertil Flink\Desktop\BBC\"
    --theArgs = "/n,/e,"
    --openFolder theDir, theArgs

    -----------------------------------------------------------------------

    --Below, is an explanation of Explorer's command-line syntax originally
    written by Greg Wolking [ZDNet]. Some examples contain spaces in order to
    format properly on this page, so you may need to remove them if you copy and
    paste.
    --
    --EXPLORER [/E, | /N,]pathspec[,/ROOT,rootspec] [,/SELECT,filespec]
    --
    --Note that _only_ commas, not spaces, separate all switches and arguments.
    Therefore, it is not necessary to quote file or path names that include
    "reserved" characters. Command line is not case-sensitive, and order of
    arguments is not important.
    --
    --The pathspec and rootspec arguments must point to a folder. The filespec
    argument can point to either a folder or a file.
    --
    --/E = Opens a new explorer view window.
    --
    --/N = Opens a new folder view window. Otherwise, if a folder view of the
    specified folder is already open, simply activates that window. /E overrides
    /N.
    --
    --pathspec = target path to open. Appears as the window caption in folder
    view. In explorer view, tree in left hand pane is open to the specified
    folder. This argument is ignored if the /SELECT,filespec option is used.
    --
    --/ROOT,rootspec = User cannot navigate any higher in the directory tree
    than rootspec. When this option is used, pathspec or filespec must be
    relative to rootspec.
    --
    --/SELECT,filespec = opens desired view with specified object (file or
    folder) selected. If used, pathspec is ignored (it defaults to the parent
    folder of filespec).
    --
    --Note that when /ROOT,rootspec is used, then both pathspec and filespec
    must be relative to rootspec, regardless of the order in which the
    parameters are specified. For example,:
    --
    --EXPLORER /E,SYSTEM,/ROOT, D:\WINDOWS,/SELECT,SYSTEM\SHELL32.DLL
    --
    --EXPLORER /E,/SELECT,SYSTEM\SHELL32.DLL,/ROOT, D:\WINDOWS
    --
    --both do exactly the same thing: Open an Explorer view with the tree
    limited to D:\WINDOWS or below, the left pane opened to the
    D:\WINDOWS\SYSTEM folder, and the file SHELL32.DLL selected in the right
    pane. Changing /E, to /N, would open a new folder view of D:\WINDOWS\SYSTEM
    with SHELL32.DLL selected, and the user could navigate no higher in the tree
    than D:\WINDOWS.
    --
    --However,
    --
    --EXPLORER /ROOT,D:\WINDOWS,/SELECT, D:\WINDOWS\SYSTEM\SHELL32.DLL
    --
    --would fail because "D:\WINDOWS\SYSTEM\SHELL32.DLL" is an explicit path,
    not a relative path.




    --
    Bertil Flink
    Creative Media




    "Nomenclature" <webforumsuser@macromedia.com> skrev i meddelandet
    news:bjl8c8$97e$1@forums.macromedia.com...
    > I have a button, that when hit copies a folder from CD to the selected
    destination on the users hard drive, using FileXtra4... What I can't seem to
    do, is automatically open the folder that was copied to the HD after writing
    has completed... is there a way to do this with FileXtra that I haven't been
    able to find, or via straight lingo?
    >
    >

    Bertil Flink Guest

  4. #3

    Default Re: Open folder?

    Also, would anyone know where I could find XAlwaysTOP?

    [url]http://www.xtra-ucd.com/pages/page.php?product=xtra&language=en[/url], is dead, as is the link at [url]http://binbin.myrice.com/english/download.html[/url]


    Nomenclature webforumsuser@macromedia.com Guest

  5. #4

    Default Re: Open folder?

    Hi,

    There's no need to use an xtra to open that folder(destination)...All you need is the destination path available to the command: gotonetpage(destination)...this will open up that folder in a window..no xtras required...

    Vj
    vij010 Guest

  6. #5

    Default Re: Open folder?

    That was neat! You learn something every day.

    No 3:rd party Xtras needed, but don't forget to include Director's net
    xtras.


    BF





    "vij010" <stamptube@hotmail.com> skrev i meddelandet
    news:bjm17i$go3$1@forums.macromedia.com...
    > Hi,
    >
    > There's no need to use an xtra to open that folder(destination)...All you
    need is the destination path available to the command:
    gotonetpage(destination)...this will open up that folder in a window..no
    xtras required...
    >
    > Vj

    Bertil Flink Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139