masterpp Posted November 11, 2005 Posted November 11, 2005 I need a command to copy the folder "i386" from CD into C:\i386\ folder during unattended.What is the command?
gunsmokingman Posted November 11, 2005 Posted November 11, 2005 (edited) Try this, it a vbs script, it uses the copy dialog progress bar for the files to be copy.Save As Copy_i386.vbsDim Act, CD, Fso, Folder, Shell, strCdSet Act = CreateObject("Wscript.Shell")Set Fso = CreateObject("Scripting.FileSystemObject")set Shell = CreateObject("Shell.Application") Function CD_CopySet CD = Fso.DrivesFor Each strCd In CDIf strCd.DriveType = 4 ThenIf Fso.FileExists(strCd & "\win51") ThenAct.Popup "This Is A XP CD, " & strCd ,5,"Confirm XP CD", 0 + 32Copy_XPExit Function Else Act.Popup "This Is Not The Correct CD",5,"Incorrect CD", 0 + 32End If End IfNext End FunctionFunction Copy_XPIf Not Fso.FolderExists("C:\i386")Then Fso.CreateFolder("C:\i386")End Ifset Folder = Shell.NameSpace("C:\i386")if not Folder is nothing then Folder.CopyHere(strCd & "\i386\*.*")set Shell = nothing set Folder = nothing End IfEnd Function CD_Copy Edited November 11, 2005 by gunsmokingman
Recommended Posts
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now