Jump to content

Recommended Posts

Posted

Hello guys.. im kind of new "" Greenhorn"" in coding.

When I arrive at work, I have to open like 20 programs to start the day, so I wanted to Automate the process.

I was looking around the forums and found a simple way to "tag" programs

image.png.5db6eead4f48da8bb8d1b38f6628cc64.png

when I try to open other programs, same as outlook no special rights needed they won't open and I get this : "" marked out the username "", hold to mention that im local admin.

image.thumb.png.13f7ca8dae38d8c147d00a5f42bb3097.png

The program I got the error code from is located  ; C:\folder\System\programname.exe

 

The other problem is that I need to open "" server shared "" locations like :

 \\server2\folder1\folder2\dataextractor.xlsm

or the folder alone

\\server2\folder4\folder5 

 

and it's not working.. im in a real strugle to make this work as it will be more fast to start the day out.

 

I Bet it's something super simple.. 

Thanks anticipated.

 

Posted

Post your script

If I posted any code, assume that code was written using the latest release version unless stated otherwise. Also, if it doesn't work on XP I can't help with that because I don't have access to XP, and I'm not going to.
Give a programmer the correct code and he can do his work for a day. Teach a programmer to debug and he can do his work for a lifetime - by Chirag Gude
How to ask questions the smart way!

I hereby grant any person the right to use any code I post, that I am the original author of, on the autoitscript.com forums, unless I've specifically stated otherwise in the code or the thread post. If you do use my code all I ask, as a courtesy, is to make note of where you got it from.

Back up and restore Windows user files _Array.au3 - Modified array functions that include support for 2D arrays.  -  ColorChooser - An add-on for SciTE that pops up a color dialog so you can select and paste a color code into a script.  -  Customizable Splashscreen GUI w/Progress Bar - Create a custom "splash screen" GUI with a progress bar and custom label.  -  _FileGetProperty - Retrieve the properties of a file  -  SciTE Toolbar - A toolbar demo for use with the SciTE editor  -  GUIRegisterMsg demo - Demo script to show how to use the Windows messages to interact with controls and your GUI.  -   Latin Square password generator

Posted
On 7/26/2019 at 6:46 PM, BrewManNH said:

Post your script

Managed to solve the problem, thanks for the help.

It was more complicated.. 

My username is a "" serverside "" user on a different domain, the pc im using has some software installed for "" local group "" and some for domain users..

Basically I contacted the group admin and he granted me access to the programs I am using.

Thanks for the help :)

Posted
On 7/26/2019 at 10:28 PM, Seminko said:

It's hard to say what might be causing your issue without seeing the code.

The only think I can suggest, with the information I've been given, is to try putting '#RequireAdmin' at the top of your code under any includes you might use. Like so:

#include <someInclude.au3>

#RequireAdmin

rest of your code

https://www.autoitscript.com/autoit3/docs/keywords/RequireAdmin.htm

Managed to solve it, thanks :) 

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...