WinBatch Tech Support Home

Database Search

If you can't find the information using the categories below, post a question over in our WinBatch Tech Support Forum.

TechHome

Desktop

Can't find the information you are looking for here? Then leave a message over on our WinBatch Tech Support Forum.

How to Open Desktop Folders

Keywords:    explorer.exe

Question:

We have a win95 environment - part of a workstation build is to build a desktop folder, which once a user logs on will be populated with authorised applications. Using WinBatch, I want to be able to position the opened folder to relative coordinates on the desktop (based on whether the pc is vga, svga etc.) But I am unable to find a Winbatch command that will open the folder so I can do the rest.I thought WinPlaceSet would work, but it errors saying can't find the window (which is true as it is still an icon on the desktop). All syntax's are correct - is there a way to achieve this?

Answer:

I know of no way to position an icon on the desktop with WinBatch. However, you could do something like:
        Run("Explorer.exe",FolderPath)
if you don't need to go thru a LNK file to a folder. Or, if you have on your desktop a shortcut to a folder someplace on your harddrive, and you wish to access the desktop icon and have it open the desired folder...
        folder="C:\windows\desktop\stuff.lnk"
        aaa=ShortCutInfo(folder)
        target=ItemExtract(1,aaa,@tab)
        run("explorer.exe",target)

Article ID:   W13173
Filename:   Open a Desktop Folder.txt
File Created: 1999:04:15:16:52:14
Last Updated: 1999:04:15:16:52:14