dannyict Posted October 27, 2014 Posted October 27, 2014 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?
Kelsenellenelvian Posted October 27, 2014 Posted October 27, 2014 {XCOPY} %wpipath%\..... %APPDATA%\........
dannyict Posted October 28, 2014 Author Posted October 28, 2014 Thanks, but tried withcmds[pn]=['{XCOPY} "%wpipath%\\Install\\exception.sites %APPDATA%\\localLow\\Sun\\Java\\Deployment\\security\\"'];and it's not copying that file?
condor Posted October 28, 2014 Posted October 28, 2014 (edited) 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, 2014 by condor
dannyict Posted October 28, 2014 Author Posted October 28, 2014 Thanks for the suggestions, strange but still not working
condor Posted October 28, 2014 Posted October 28, 2014 (edited) Paste here error log and you config LE. exception.sites is located in Install folder? or other folder from Install ? Edited October 28, 2014 by condor
dannyict Posted October 28, 2014 Author Posted October 28, 2014 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++;
dannyict Posted October 28, 2014 Author Posted October 28, 2014 (edited) hmm now i see, it wants to go to AppData\Roaming instead to AppData\localLow, how to solve that one? Edited October 28, 2014 by dannyict
condor Posted October 28, 2014 Posted October 28, 2014 (edited) 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, 2014 by condor
dannyict Posted October 28, 2014 Author Posted October 28, 2014 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\\"'];
condor Posted October 28, 2014 Posted October 28, 2014 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 1
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