October 27, 201411 yr Hi, I'm trying to copy this file exception.sites to \appdata\localLow\Sun\Java\Deployment\security\. But can't figure out how to do that. I ttied {Start} and then the vbs script and {Filecopy} with the file, but it's not working . this is the vbs script that works. Set objFSO = CreateObject("Scripting.FileSystemObject") set objWShell = wScript.createObject("WScript.Shell") usrName = objWShell.expandEnvironmentStrings("%USERNAME%") objFSO.CopyFile "exception.sites" , "C:\Users\" & usrName & "\appdata\localLow\Sun\Java\Deployment\security\", True Anyone has a solution please?
October 28, 201411 yr Author Thanks, but tried withcmds[pn]=['{XCOPY} "%wpipath%\\Install\\exception.sites %APPDATA%\\localLow\\Sun\\Java\\Deployment\\security\\"'];and it's not copying that file?
October 28, 201411 yr Try thiscmds[pn]=['{FILECOPY} "%wpipath%\\Install\\exception.sites" "%APPDATA%\\localLow\\Sun\\Java\\Deployment\\security"'];or cmds[pn]=['{XCOPY} "%wpipath%\\Install\\exception.sites" "%APPDATA%\\localLow\\Sun\\Java\\Deployment\\security"']; Edited October 28, 201411 yr by condor
October 28, 201411 yr Paste here error log and you config LE. exception.sites is located in Install folder? or other folder from Install ? Edited October 28, 201411 yr by condor
October 28, 201411 yr Author cmd1 ** Fout ** (terug gedraaide code 999): "C:\brol4\WPI_ICT4.1\Install\exception.sites" "C:\Users\ghostie\AppData\Roaming\localLow\Sun\Java\Deployment\security" configprog[pn]=['Voegt java security toe voor http://www.fisme.science.uu.nl];uid[pn]=['VOEGTJAVASECURITYTOE'];dflt[pn]=['yes'];forc[pn]=['no'];bit64[pn]=['no'];cat[pn]=['Ict-werkbalk 4.1'];pfro[pn]=['no'];cmds[pn]=['{XCOPY} "%wpipath%\\Install\\exception.sites" "%APPDATA%\\localLow\\Sun\\Java\\Deployment\\security"'];desc[pn]=['Voegt java security toe'];pn++;
October 28, 201411 yr Author hmm now i see, it wants to go to AppData\Roaming instead to AppData\localLow, how to solve that one? Edited October 28, 201411 yr by dannyict
October 28, 201411 yr cmds[pn]=['{XCOPY} "%wpipath%\\Install\\exception.sites" "%USERPROFILE%\\AppData\\LocalLow\\Sun\\Java\\Deployment\\security"'];You can verify other variables from WPI-->Information-->Variables Edited October 28, 201411 yr by condor
October 28, 201411 yr Author thanks,did not work but works with {FILECOPY} and \\ at the endcmds[pn]=['{FILECOPY} "%wpipath%\\Install\\exception.sites" "%USERPROFILE%\\AppData\\localLow\\Sun\\Java\\Deployment\\security\\"'];
October 28, 201411 yr I think XCOPY is for folders. I forget ms-dos commands Also work with this cmds[pn]=['{FILECOPY} "%wpipath%\\Install\\exception.sites" "%USERPROFILE%\\AppData\\LocalLow\\Sun\\Java\\Deployment\\security"']; without \\ at the end
Create an account or sign in to comment