Paedric Posted January 13, 2011 Share Posted January 13, 2011 I have a script that create a batch file in a different folder, then run it. However, it would seem that on windows vista/7, when this folder is in the program files, the program can't create those files at all. It seems like a permission issue, so I looked around a bit, and saw that there was a command that makes the script use UAC. I tried it, but no luck. I know the script works, because it's flawless on my computer, but it does not work on everyone's. Can anyone please help me with this? Link to comment Share on other sites More sharing options...
enaiman Posted January 13, 2011 Share Posted January 13, 2011 This works very well for me on Win7 DirCreate(@ProgramFilesDir&"\myTestFolder") FileClose(FileOpen(@ProgramFilesDir&"\myTestFolder\test.txt", 2)) SNMP_UDF ... for SNMPv1 and v2c so far, GetBulk and a new example script wannabe "Unbeatable" Tic-Tac-Toe Paper-Scissor-Rock ... try to beat it anyway :) Link to comment Share on other sites More sharing options...
Varian Posted January 13, 2011 Share Posted January 13, 2011 As you stated, it's a permissions issue. If you are logged on as an LUA user, you probably won't be able to create any folders or files in the Progra Files directory. Try using RunAs for elevated premissions, or #RequireAdmin at least. 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