dannyict Posted October 27, 2014 Share 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? Link to comment Share on other sites More sharing options...
Kelsenellenelvian Posted October 27, 2014 Share Posted October 27, 2014 {XCOPY} %wpipath%\..... %APPDATA%\........ Link to comment Share on other sites More sharing options...
dannyict Posted October 28, 2014 Author Share 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? Link to comment Share on other sites More sharing options...
condor Posted October 28, 2014 Share 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 Link to comment Share on other sites More sharing options...
dannyict Posted October 28, 2014 Author Share Posted October 28, 2014 Thanks for the suggestions, strange but still not working Link to comment Share on other sites More sharing options...
condor Posted October 28, 2014 Share 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 Link to comment Share on other sites More sharing options...
dannyict Posted October 28, 2014 Author Share 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++; Link to comment Share on other sites More sharing options...
dannyict Posted October 28, 2014 Author Share 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 Link to comment Share on other sites More sharing options...
condor Posted October 28, 2014 Share 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 Link to comment Share on other sites More sharing options...
dannyict Posted October 28, 2014 Author Share 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\\"']; Link to comment Share on other sites More sharing options...
condor Posted October 28, 2014 Share 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 Link to comment Share on other sites More sharing options...
dannyict Posted October 28, 2014 Author Share Posted October 28, 2014 thanks for all the help Link to comment Share on other sites More sharing options...
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