Question
February 7, 2008 at 11:01 AM
arujammer

Help with VBS script make new folder in start menu and copy files to it

by arujammer . Updated 18 years, 9 months ago

Hi
I have this script,
What i’m trying to do is to let the script to make a folder in “Start” menu for all my users and copy files from a temp folder to this new folder.

Dim objFSO, objFolder,ws,
Set objFSO = CreateObject(“Scripting.FileSystemObject”)

If objFSO.FolderExists(“C:\Documents and Settings\All Users\Menu Start\New Folder”) Then
Set objFolder = objFSO.GetFolder(“C:\Documents and Settings\All Users\Menu Start\New Folder”)
Else
Set objFolder = objFSO.CreateFolder(“C:\Documents and Settings\All Users\Menu Start\New Folder”)

Set ws = CreateObject(“WScript.Shell”)
ws.Exec(“xcopy.exe D:\TEMP\ C:\Documents and Settings\All Users\Menu Start\New Folder”)
End If

This script makes the “New Folder” ,but no files are copied from “Temp”
Is it also possible to change the icon of the “New Folder”.??

This discussion is locked

All Comments