SimpleSi Posted September 29, 2012 Posted September 29, 2012 Why is this simple install cmd failing cmd='%COMSPEC% /C copy "R:\Abacus Original\Abacus 1 Pupil\Install Abacus Pupil Activity 1 Original.lnk" "%ALLUSERSPROFILE%\Desktop\Install Abacus Pupil Activity 1 Original.lnk" /y' /> Is it the path length (client is Win7 Pro BTW) If I manuall type in copy "R:\Abacus Original\Abacus 1 Pupil\Install Abacus Pupil Activity 1 Original.lnk" "%ALLUSERSPROFILE%\Desktop\Install Abacus Pupil Activity 1 Original.lnk" Then it works fine I'm going to make an install.bat file and run that but its just frustrating when you've pooped in on a Saturday to have daft thinks like this happen! Simon
SimpleSi Posted September 29, 2012 Author Posted September 29, 2012 Changed the wpkg to cmd='%COMSPEC% /C copy "R:\Abacus Original\Abacus 1 Pupil\install.bat"' /> and that fails as well Simon
SimpleSi Posted September 29, 2012 Author Posted September 29, 2012 Mind you works a lot better when you remember to take the "copy" out of the line So the install.bat approach works - I wonder what the straight WPKG issue is? Simon
Steve21 Posted September 29, 2012 Posted September 29, 2012 Haven't personally used WPKG, but assuming it's running under a different account to what you're using, could it simply be access denied? As it's ProgramData folder (Win7 blahblah/UAC blahblah) What's the actual error you get? Steve
morganw Posted September 29, 2012 Posted September 29, 2012 Maybe it's a Windows 7 security thing because you are writing to the default profile, but here is a working example that I was using (using xcopy rather than copy). You could try redirecting your output to a file rather than NUL to see what's going on if you still have problems.
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