masterpp Posted November 11, 2005 Share 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? Link to comment Share on other sites More sharing options...
gunsmokingman Posted November 11, 2005 Share 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 Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now