/build/static/layout/Breadcrumb_cap_w.png

Start up -Wise script

I wrote a wise script to copy a file from F:\ to C:\..
as the file is updated often ,so i wrote another wise script to which will put a shortcut at start up location so when the users logs in the file will be copied.For the target path of shortcut i mentioned the first created wise script(.exe)
The problem is when i run the shortcut as administrator the file is copied but on start up it does not,I changed the properties of the shortcut to run as admin..but still this does not work.
Can anyone let me know how to make it work/ where i am doing mistake This on win 7 machine.
Any help is appreciated.

Thank You

0 Comments   [ + ] Show comments

Answers (1)

Posted by: hcbph 12 years ago
Yellow Belt
0
Check your ACL on the folder or file you're trying to write to. If it does not allow users to write to the directory, that may be your problem. You can use DirAttrGet and DirAttrSet to manipulate them but likely it will have to be under local admin authority. Is the file write protected? If it is, then use FileAttrGet and FileAttrSet to manipulate that before copying.

Good luck
Rating comments in this legacy AppDeploy message board thread won't reorder them,
so that the conversation will remain readable.
 
This website uses cookies. By continuing to use this site and/or clicking the "Accept" button you are providing consent Quest Software and its affiliates do NOT sell the Personal Data you provide to us either when you register on our websites or when you do business with us. For more information about our Privacy Policy and our data protection efforts, please visit GDPR-HQ