November 1, 200520 yr i am trying to write a copy command in WPI but when i am loading WPI.hta i get a error. I know this line is the problem because when i remove the lines the error disappears too....cmd1[pn]=['%cdrom%\\Install\\winrar\\WinRAR351NL.exe /s']cmd2[pn]=['COPY %CDROM%\\Install\\winrar\\rarreg.key C:\Progra~1\winrar\']also when mouse hoover over a name, the description works well but the avatars dont show, why not? also the variable %Progs% dont work? Which variables are possible in WPI?come on people, help me further, i went into circles.
November 1, 200520 yr I have never heard of the variable "%progs%"As for the other please post your config file for me to see.
November 1, 200520 yr As for the fist problem just make a rar SFX file with the key in it and set to extract to the desired location.Also winrar can be repackaged using winrar with the key in it. Edited November 1, 200520 yr by kelsenellenelvian
November 1, 200520 yr Author As for the fist problem just make a rar SFX file with the key in it and set to extract to the desired location.Also winrar can be repackaged using winrar with the key in it.ok that is a solution, but dont WPI accept COPY commands as if a batch do? i Prefer a copy command because if winrar have a new version i can simply replace the winrar.exe. (and not alone winrar, kaspersky AV and other programs too...) With your solution i have to SFX everything again and again...I have never heard of the variable "%progs%"As for the other please post your config file for me to see.i was wrong, it was $Progs, and i was sure it works under windows in CMD, but it isnt. i was sure it works, dont know why...
November 1, 200520 yr WPI, does accept the copy command, even the xcopy command, as i use this in mine.I don't have the exact command here, will post when i get home and remember.I do notice you have no switches which might be an issue.
November 1, 200520 yr Author I do notice you have no switches which might be an issue.i use switches.... or am i understanding you wrong? cmd1[pn]=['%cdrom%\\Install\\winrar\\WinRAR351NL.exe /s']and i am very thanksfull if you show me your XCOPY command line....
November 1, 200520 yr Change this line:cmd2[pn]=['COPY %CDROM%\\Install\\winrar\\rarreg.key C:\Progra~1\winrar\']to this:cmd2[pn]=['FILECOPY %CDROM%\\Install\\winrar\\rarreg.key %ProgramFiles%\\winrar\\'](remember the double slashes if you're editing your config.js manually)
November 1, 200520 yr What files have you modified? The display pics work for everyone else you are the only one that has gotten errors with it. All you enter in the graphics line is = blah.png that is it nothing else. I use both jpg and png formats for my images.
November 1, 200520 yr Author Change this line:cmd2[pn]=['COPY %CDROM%\\Install\\winrar\\rarreg.key C:\Progra~1\winrar\']to this:cmd2[pn]=['FILECOPY %CDROM%\\Install\\winrar\\rarreg.key %ProgramFiles%\\winrar\\'](remember the double slashes if you're editing your config.js manually)thank you very much , the error is gone.Do this copy 1 file? what if i want to copy 2 files? (i am curious and want to know it before i need this information) Edited November 1, 200520 yr by SolidasRock
November 1, 200520 yr Author For 2 files I woud just use two entries.i change my question to be more clear, is there a copy command for more than 1 file? where i can find information about all commands or variables WPI can handle?What files have you modified? The display pics work for everyone else you are the only one that has gotten errors with it. All you enter in the graphics line is = blah.png that is it nothing else. I use both jpg and png formats for my images.i dont got any errors with the pics. they are simple not show up when hoovered (only the bottomline will show). and i am sure the problem is belongs to me. but i only want to know what my fault is. edit: i have found it, i use the whole path to the pic, no need for that, only write the filename and you are gone. Thanks
November 1, 200520 yr LOL hahahahahaha RTFM!!Quote from the included manual:For the text and description just enter all of the text you wish to be shown in the description box.For the desired picture place the desired image into the graphics folder at the root of WPI and simply add the file name (Like this = blah.jpg). Many pre-set image sizes for both the height and width are pre programmed in to the configuration section for your use. Also you can choose where the text is to be displayed with the image i.e. To the left, right, top or bottom. Edited November 2, 200520 yr by kelsenellenelvian
November 2, 200520 yr If you want to copy a directory use dircopy.cmd1[pn]=['dircopy source destination']
November 3, 200520 yr Author If you want to copy a directory use dircopy.cmd1[pn]=['dircopy source destination']thanks again
November 4, 200520 yr 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.
Create an account or sign in to comment