dub Posted September 16, 2010 Posted September 16, 2010 Hi how you input the code in winrar sfx to extract & copy certain files to C:\Documents and Settings\%userprofile%\Application Data ? in Windows XP / Vista / SevenThe sfx application requires a profile.xml file to be in the C:\Documents and Settings\%username%\Application Data folderOr do i need to create a .cmd file? If yes how?Please advise. Thanks ahead =)
radix Posted September 16, 2010 Posted September 16, 2010 (edited) Select the files to add in a sfx archive, right click on selection->WinRAR->Add to archive...->check Create sfx archive->Advanced->SFX Options->in path to extract fill with %APPDATA%, click OK, click OK. Also you can adjust compression if necessary. Edited September 16, 2010 by radix
dub Posted September 16, 2010 Author Posted September 16, 2010 (edited) Thanks for the reply radixI meant only the profile.xml file alone is extracted or copied to C:\Documents and Settings\%username%\Application Data folderThe rest of the files in SFX archive is extracted to the sfx default output folder - "program files" folderI don't know what additional sfx scripts commands is required to input on the sfx comment sectionOr create a run.cmd file to do the profile.xml file copying & add " /w run.cmd " without quotes after this sfx command script Setup=software.exeExample;Setup=software.exe /w run.cmdTempModeSilent=1Overwrite=1But I dont know what is command line is use to create the run.cmd file Edited September 16, 2010 by dub
Kelsenellenelvian Posted September 17, 2010 Posted September 17, 2010 Setup=software.exe /w Setup=run.cmdSetup= (You can have as many of these as you want)TempModeSilent=1Overwrite=1
dub Posted September 17, 2010 Author Posted September 17, 2010 (edited) Thanks for reply KelsenellenelvianDo you know the script code for the run.cmd file to copy the specfic file in sfx archive to C:\Documents and Settings\%username%\Application Data folder?Thanks all Edited September 17, 2010 by dub
dub Posted September 17, 2010 Author Posted September 17, 2010 Thanks Kelsenellenelvian, you're a geniusIts is possible to copy a folder + sub folder + 2 filesexampleProfile folder / Username folder / profile.xml + Username.binThanks again
Kelsenellenelvian Posted September 17, 2010 Posted September 17, 2010 (edited) XCOPY .\Folder\* %appdata% /s /ihttp://ss64.com/nt/ Edited September 17, 2010 by Kelsenellenelvian
Softkiller Posted November 30, 2013 Posted November 30, 2013 XCOPY .\Folder\* %appdata% /s /iafter created batch file and prepared directory for transfer on local user appdatainvalid number of parameters
submix8c Posted December 2, 2013 Posted December 2, 2013 ?Not sure about this, but you MAY need to wrap %appdata% with quotes, e.g. "%appdata%".
DosProbie Posted December 4, 2013 Posted December 4, 2013 when using xcopy quotes is not always needed but is always a good practice to include them just in case of spaces in source path etc.
submix8c Posted December 4, 2013 Posted December 4, 2013 (edited) Really?C:\Documents and Settings\<username>>echo %appdata%-Result is:C:\Documents and Settings\<username>\Application Datain Windows XP / Vista / SevenThat would apply to 2K and 2K3 (what I did it on) as well. It will be different for Vista/7 - the result will beC:\Users\<username>\Appdata\Roaming(performed on Win7 Home Premium).IOW, "xcopy" will NOT run with blanks in the name, hence wrapping in quotes. P.S., you will need a backslash and whatever filenames\folders (however you do it) immediately following the VariableName ("%appdata\<somethinghere>%") within the quotes. S.O.P. Edited December 4, 2013 by submix8c
Recommended Posts
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now