bigred Posted August 11, 2003 Posted August 11, 2003 Please forgive my noobi-ness...but at least I'm having fun learning I want to copy a couple of things to the Program Files folder...Obviously if I use "%systemroot%" in my batch file, that's meaning the Windows folder...but of course the "Program Files" folder is in the same C Drive directory as the "Windows" folder is....Can anyone give me a sample line that would copy "exampleA" to the Program Files folder? (This is a folder containg ResHack)Would I just put - copy "%systemdrive%\Install\SystemFiles\exampleA" "C:\Program Files\" ???Thanks for your help...
Aaron Posted August 11, 2003 Posted August 11, 2003 If you want to copy a directory to another location where it never existed, then use XCOPYXCOPY /E /Q "%systemdrive%\Install\SystemFiles\exampleA" "%systemdrive%\Program Files\exampleA"
bigred Posted August 11, 2003 Author Posted August 11, 2003 Oh I see....I've never used this XCOPY yet (still a noob ).I'll give it a try.... thanks for the quick reply...
bigred Posted August 11, 2003 Author Posted August 11, 2003 OK....I followed instructions, and got the folder copied...but I did have one more question... During the batch file, and specifically when this folder was copied, a dialogue came up asking me if I was specifying "a file (f) or a directory (d)" ...I was being prompted to hit f or d...I hit d because it's a folder I'm installing, and everything worked fine....but how could I do this without having to press a key...how can I automate that ? Thank you
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