Re: Use Group Policy to deploy a Desktop shortcut
- From: "Cary Shultz" <cwshultz@xxxxxxxx>
- Date: Sat, 18 Feb 2006 00:25:41 -0500
Ralf,
Das stimmt!
--
Cary W. Shultz
Roanoke, VA 24012
"Ralf Wigand" <wigand@xxxxxxxxxxxxxxxxxxx> wrote in message
news:OYIHOg7MGHA.1760@xxxxxxxxxxxxxxxxxxxxxxx
as a user of german XP, I would prefer the following line:
' An example of using environment variables when copying files.
' In this script a shortcut 'shortcut.lnk' is copied to the desktop
' of the %username% user profile.
set objFso=createObject("scripting.fileSystemObject")
set objWShell=wScript.createObject("WScript.Shell")
usrName=objWShell.expandEnvironmentStrings("%USERNAME%")
strFileToCopy="shortcut.lnk"
strFolder="C:\Documents and Settings\"&usrName&"\Desktop"
strFolder=objWShell.SpecialFolders.item("Desktop")
(in german versions it is called Dokumente und Einstellungen :-)
if objFso.folderExists(strFolder) then
objFso.copyFile strFileToCopy,strFolder&"\",true
end if
--
Paul Williams
Microsoft MVP - Windows Server - Directory Services
http://www.msresource.net | http://forums.msresource.net
ciao, ralf
.
- References:
- Re: Use Group Policy to deploy a Desktop shortcut
- From: Paul Williams [MVP]
- Re: Use Group Policy to deploy a Desktop shortcut
- From: Ralf Wigand
- Re: Use Group Policy to deploy a Desktop shortcut
- Prev by Date: Re: Delayed access to shared folder when user added to security group
- Next by Date: Re: A weird error in event viewer
- Previous by thread: Re: Use Group Policy to deploy a Desktop shortcut
- Next by thread: Re: Use Group Policy to deploy a Desktop shortcut
- Index(es):
Relevant Pages
|