Forum Home
Press F1
 
Thread ID: 10800 2001-08-13 09:20:00 Explorer Switches Guest (0) Press F1
Post ID Timestamp Content User
16921 2001-08-13 09:20:00 I'm trying to get my file manager to open in a specified
directory when it's invoked from the autorun routine on a CD.

PowerDesk FAQ says it complies with MS Explorer switches. The MS
documentation on Explorer say the %1 transfer mechanism may be
necessary.

I want Powerdeck to open with a file list pane [-e] in the F:\ziphold folder.

I've tried open='C:\Program Files\Ontrack\PowerDesk\PDEXPLO.EXE' %1 /F:\ziphold /e-

This line gets to F: drive but not to the Ziphold folder.

Does anyone know what's the trick in getting to the designated folder ?
Guest (0)
16922 2001-08-13 13:02:00 Have a look at the griff below.

I think you need to use the select option.

Locate your Windows Explorer shortcut right now. (Look under Start, Programs in Windows 98 or, in Windows 2000, Start, Programs, Accessories.) Right-drag this shortcut from its original location and drop it on the Start button. Finally, click Copy to make a duplicate item right on your Start menu. Apply changes to this duplicate, and you'll still have your original one to go back to, if desired.

Once you have your new Explorer shortcut on your Start menu, right-click it, then click Properties. In Windows 2000, you'll see this command line: %SystemRoot% \explorer.exe. In Windows 98, you'll see something such as the following: c:\windows \explorer.exe /n, /e, c:\.

This latter command line hints at the parameters that Explorer supports. The syntax of these parameters is as follows (I've eliminated the path for brevity's sake): explorer {/n} {,/e} {,/root, x} {{,/select}, y}.

The /n switch opens a new Explorer window, even if an existing window is open. The /e switch specifies a two-pane Explorer view, rather than a single pane. Note that commas are necessary between parameters.

The /root and /select switches make things interesting. You use /select -- followed by file, folder, or computer name y -- to highlight the selected object and put Explorer's focus on its parent. You use /root in the same way, followed by x, to open Explorer with object x fixed at the 'top' of the tree view.

You would typically use the /select switch to make Explorer start with a specific folder or drive selected. By contrast, the /root switch, which is used less often, makes Explorer display a window in which the 'root' you've specified is as high as you can go.

Here are some examples. The following command line would start Explorer with the Docs folder open and the file Today.doc selected: explorer /n, /e, /select,c:\docs \today.doc.

Perhaps you don't need to select a specific file but only want Explorer to focus on a different drive letter than the default. In that case, you can dispense with the optional /select switch and simply name the drive.

For example, the following command line would cause Explorer to open with its focus on the D: drive, which might be your CD-ROM or other device: explorer /n, /e, d:\.

The following /root command would start Explorer with Server1 at the top of the tree: explorer /n, /e, /root, \\server1.

Try these for yourself. You can easily make several Explorer shortcuts, one for each drive, one for special folders, and so forth.

For more details, go to search.support.microsoft.com/kb/c.asp and search for article ID Q237494.
Guest (0)
16923 2001-08-13 23:23:00 Tony Drew:

I've tried both these approaches:

open='C:\Windows\Explorer.exe' /n, /select,F:\ziphold

open='C:\Program Files\Ontrack\PowerDesk\PDEXPLO.EXE' %1 /n, /select,F:\ziphold

The %1 transfer mechanism is necessary with PowerDesk

Neither file manager open in the Ziphold folder.

What now ?
Guest (0)
1