November 4, 200520 yr Author 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, 200520 yr by SolidasRock
November 5, 200520 yr Author 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++
November 6, 200520 yr Author is there a way to write this shorter? cmd2[pn]=['FILECOPY %CDROM%\\Install\\Autoruns\\autoruns.lnk %systemdrive%\\Documents and Settings\\All Users\\Desktop\\']
November 6, 200520 yr Author 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
November 6, 200520 yr Author 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, 200520 yr by SolidasRock
Create an account or sign in to comment