Im trying to copy a folder from one destination to another, and it works using a batch file -


here is:

xcopy /s %systemdrive%\users\%username%\desktop\program\folderx  %appdata%\.home\saves 

but if copy folder desktop, there way can click batch anywhere i.e. d drive, h drive, documents, on windows machine , copies .home\saves


edit: sorry bit vague

folderx in folder on desktop called "program". batch file in folder entitled " program" on desktop. when double click batch file, copies " folderx" , subdirectory %appdata%.home\saves. lets have on flash, , copies c drive. there universal way batch file still copy folderx, regardless of "program" folder is?

also let me know.

the question unclear, here goes. copy folderx if exists in same directory batchfile.

xcopy /s .\folderx %appdata%\.home\saves 

this copy directories , files batch file exists.

xcopy /s .\* %appdata%\.home\saves 

if bit more specific question, can add options


Comments

Popular posts from this blog

Command prompt result in label. Python 2.7 -

javascript - How do I use URL parameters to change link href on page? -

amazon web services - AWS Route53 Trying To Get Site To Resolve To www -