Solid as a rock Posted November 4, 2005 Author Posted November 4, 2005 (edited) I hope this helps: to copy, rename etc ... you can use the regular dos commands, but you have to put a "cmd /c " in front of them.For example: cmd1[pn]=['cmd /c COPY %CDROM%\\Install\\winrar\\rarreg.key %programfiles%winrar\']Notice that there is no "\" between %programfiles% and winrar folder.thanks , this is very usefull information... @kelsenellenelvian, thanks for the topictitlechange Edited November 5, 2005 by SolidasRock
Solid as a rock Posted November 5, 2005 Author Posted November 5, 2005 i have copied this info to my config.js to remember but i am asking myself, why not write this standard in the next version?// ordr[pn]=[0]// uid[pn]=['APP1']// cond[pn]=['Javascript Conditional Statement']// deps[pn]=[]// excl[pn]=[]// configs[pn]=['List of configs to be auto checked for comma seprated']//// If you want to copy a directory use dircopy.// cmd1[pn]=['DIRCOPY %CDROM%\\Install\\winrar\\ %ProgramFiles%\\']//// If you want to copy a file use filecopy.// cmd1[pn]=['FILECOPY %CDROM%\\Install\\winrar\\rarreg.key %ProgramFiles%\\winrar\\']//// to copy, rename etc... you can use regular dos commands, but you have to put a "cmd /c " in front of them.// cmd1[pn]=['cmd /c COPY %CDROM%\\Install\\winrar\\rarreg.key %programfiles%winrar\']// Please note that there is no "\" between %programfiles% and winrar folder.//// pn++
Solid as a rock Posted November 6, 2005 Author Posted November 6, 2005 is there a way to write this shorter? cmd2[pn]=['FILECOPY %CDROM%\\Install\\Autoruns\\autoruns.lnk %systemdrive%\\Documents and Settings\\All Users\\Desktop\\']
Solid as a rock Posted November 6, 2005 Author Posted November 6, 2005 is there a way to write this shorter? cmd2[pn]=['FILECOPY %CDROM%\\Install\\Autoruns\\autoruns.lnk %systemdrive%\\Documents and Settings\\All Users\\Desktop\\']i have rewrite it to:cmd2[pn]=['FILECOPY %CDROM%\\Install\\Autoruns\\autoruns.lnk %AllUsersProfile%\\Desktop\\']much better
Solid as a rock Posted November 6, 2005 Author Posted November 6, 2005 (edited) do someone know the variable for "\Documents and Settings\Default User"? %Userprofile% is my own profile but i am searching to the variable of the "default user" profileEDIT: i found it again..."%AllUsersProfile%\..\Default User\" will bring you to the default user profile Edited November 6, 2005 by SolidasRock
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