Jump to content

Recommended Posts

Posted (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 :w00t: , this is very usefull information... :thumbup

@kelsenellenelvian, thanks for the topictitlechange :)

Edited by SolidasRock

Posted

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++

Posted
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 :thumbup

Posted (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" profile

EDIT: i found it again...

"%AllUsersProfile%\..\Default User\"

will bring you to the default user profile :P

Edited by SolidasRock

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...