Answered by:. Archived Forums. The Official Scripting Guys Forum! If your answer is "yes," you know what to do. Dive in and help somebody! If your answer is "no," welcome to our fun little world! We'd recommend that you first head over to the Script Center, get your feet wet, and then come back to either ask or answer questions.
We can't be everywhere at once we know—shocking! The Microsoft Scripting Guys 2 3. Sign in to vote. The file-system directory that serves as a data repository for local, non-roaming applications.
The file-system directory that serves as a common repository for music files. The file-system directory that serves as a common repository for image files. The file-system directory that serves as a common repository for video files. A file-system directory that contains the link objects that may exist in the My Network Places virtual folder. The virtual folder representing the My Documents desktop item.
The file-system directory that contains the link objects that can exist in the Printers virtual folder. The file-system directory that contains the user's program groups, which are themselves file-system directories. The file-system directory that contains shortcuts to the user's most recently used documents. The file-system directory that contains Send To menu items.
The file-system directory that contains Start menu items. The file-system directory that corresponds to the user's Startup program group. The file-system directory that serves as a common repository for document templates.
The temporary folder on the computer. Represents the current user-account security identifier SID. That was a pretty good find and thanks for pointing it out. If anyone tries this out, please be aware that you can only pin shortcuts and not all shortcuts I found out. I still don't know how to get Notepad pinned to the Start Menu even if I do create a shortcut for Notepad.
I am guessing that these types of shortcuts have to be copied to multiple places in the filesystem but I don't know which locations at this time. If you use this sample code to pin anything other than an shortcut, the script will throw an error. That's your first clue that the object you are trying to pin cannot be done in this way. Other languages will need to replace the text accordingly. These two scripts and batch file that I put together for my agency are currently being used, and are implemented via SCCM.
It is applied on first logon for any user to any PC. We wanted to programmatically configure the icons on the Taskbar as follows - Remove: Windows Media Player. Filesystemobject" If filesystem. FileExists Wscript. Namespace filesystem. GetParentFolderName Wscript.
ParseName filesystem. GetFileName WScript. Verbs Select case WScript. The following script can be used to programmatically create Shortcuts. I could have used a preconfigured. See this article. As added in the comment by stukelly there is a lot more information available about the SHGetFolderPath functionality.
The Delphi VCL really should have functionality for getting standard paths, and if Embarcadero is indeed going to have another Delphi-like tool on another OS this will be all the more important. For a multi-platform implementation of system standard paths see also the documentation of wxStandardPaths in wxWidgets.
How are we doing? Please help us improve Stack Overflow. Take our short survey. Stack Overflow for Teams — Collaborate and share knowledge with a private group. Create a free Team What is Teams?
Collectives on Stack Overflow. Learn more. Asked 12 years, 11 months ago.
0コメント