Login to Account Create an Account
winrar sfx code to copy files to \%userprofile%\Application
Posted 15 September 2010 - 07:44 PM
The sfx application requires a profile.xml file to be in the C:\Documents and Settings\%username%\Application Data folder
Or do i need to create a .cmd file? If yes how?
Please advise. Thanks ahead =)
Posted 16 September 2010 - 08:21 AM
%APPDATA%, click OK, click OK. Also you can adjust compression if necessary.
Edited by radix, 16 September 2010 - 08:21 AM.
Posted 16 September 2010 - 04:37 PM
I meant only the profile.xml file alone is extracted or copied to C:\Documents and Settings\%username%\Application Data folder
The rest of the files in SFX archive is extracted to the sfx default output folder - "program files" folder
I don't know what additional sfx scripts commands is required to input on the sfx comment section
Or 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.exe
Setup=software.exe /w run.cmd
But I dont know what is command line is use to create the run.cmd file
Edited by dub, 16 September 2010 - 04:50 PM.
Posted 16 September 2010 - 08:05 PM
Setup= (You can have as many of these as you want)
Posted 16 September 2010 - 09:46 PM
Do 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?
Edited by dub, 16 September 2010 - 09:47 PM.
Posted 16 September 2010 - 10:17 PM
Posted 17 September 2010 - 09:33 AM
Its is possible to copy a folder + sub folder + 2 files
Profile folder / Username folder / profile.xml + Username.bin
Posted 18 September 2010 - 11:19 AM
Posted 30 November 2013 - 12:13 PM
XCOPY .\Folder\* %appdata% /s /i
after created batch file and prepared directory for transfer on local user appdata
invalid number of parameters
Posted 02 December 2013 - 04:35 PM
Not sure about this, but you MAY need to wrap %appdata% with quotes, e.g. "%appdata%".
Posted 03 December 2013 - 06:29 PM
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.
Posted 04 December 2013 - 05:44 PM
C:\Documents and Settings\<username>>echo %appdata% -Result is: C:\Documents and Settings\<username>\Application Data
in Windows XP / Vista / Seven
That would apply to 2K and 2K3 (what I did it on) as well. It will be different for Vista/7 - the result will be
(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 by submix8c, 04 December 2013 - 05:45 PM.
0 user(s) are reading this topic
0 members, 0 guests, 0 anonymous users