Closed. This question is not about programming or software development. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 5 months ago.
Improve this question
I need to run DBeaver admin mode but instead of running the app via terminal, I need to run via shortcut as admin mode.
So, is it possible in Mac as in Windows?
Yes, you can run the app with sudo(admin mode in your word) permission with the help of the built-in App: Script Editor.
With Script Editor app open, paste this line:
do shell script "open /System/Applications/Stickies.app" user name "YOUR_USER_NAME" password "YOUR_PASSWORD" with administrator privileges
I'm taking the app Stickies.app as an example. Replace it with your own user-mode app
When edit is done, choose Menu -> File -> Export to export it as an Application.
Then you will get an executable "sudo" version of your application at your exported location.
Congrats
Related
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 1 year ago.
Improve this question
I'm a high school kid who's clueless about computing. I need to use PLINK on my MacBook for a bioinformatics project but I'm not sure how to even run it after downloading it. Any help would be greatly appreciated!
Firstly, you have to have jre or jdk installed. You can download jdk 8 (my preferred one) from the link. Just select the MacOS tab, and proceed.
Once downloaded, double-click to install.
Then, you have to download the application zip (here).
Extract it.
Double click on the gPLINK.jar in the extracted folder. If you faced an error, do the following: Open System Preferences> navigate to Security & Privacy icon > click on the lock icon below and enter password if required >on General tab, allow the program to be run.
Now the program must be launched successfully. You can move the .jar file to a desirable location, so that you will not forget where it was located.
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 1 year ago.
This post was edited and submitted for review 1 year ago and failed to reopen the post:
Original close reason(s) were not resolved
Improve this question
How to open Microsoft To Do (2.56.43053) from command line of Windows 10 Enterprise (1909). I need this answer in order to create keyboard shortcut to AutoHotkey. There might be also be another way to open the program in AutoHotkey.
So far, I have managed to open Microsoft To Do from Windows menu
or from taskbar
.
However, I did not find way to launch Microsoft To Do from command line.
From the properties of "Microsoft To Do" in Task Manager, I found that the program is located in C:\Program Files\WindowsApps, however, I do not have access to the folder from the command prompt.
It is weird to have a program which can be launched from the menu or taskbar, but cannot be launched otherwise.
From what I have read on different sources, you would have to set this up yourself.
Even though I think you should be able to launch any Microsoft app from the command line (other than the microsoft store app with the command: start ms-windows-store), like Linux does, not every app supports that from what I see.
These are the sources that I have read about how to do the setup of launching Microsoft apps from the command line.
Microsoft Community: https://answers.microsoft.com/en-us/windows/forum/all/starting-windows-10-store-app-from-the-command/836354c5-b5af-4d6c-b414-80e40ed14675
Tent Forums: https://www.tenforums.com/software-apps/57000-method-open-any-windows-10-apps-command-line.html
Edit by Heikki (questioner):
According to the links you may
first create a shortcut from the original application and
then call the shortcut from the command line: "Microsoft To Do.lnk"
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 1 year ago.
Improve this question
I tried to run a program called MSIAfterburner with no windows
But nothing works
I tried
Quiet.exe
Nircmd.exe
I tried some python scripts and JavaScript & Powershell and VBS. And every time it was showing the window of the program
Can somebody help me?
Neither quiet.exe nor nircmd.exe come with windows by default. I believe this MSIAfterburner program you are referring to is a graphics overclocking utility, which is a windows application, as opposed to a console application.
Therefore, if you for whatever reason want to run it without a window, the easiest way I can think of would be to launch the program in a different session using psexec -i 0 (run it as admin) from here.
If you want to run it without a window without admin privileges, the best I can think of would be to use the winapi ShowWindow(handle_to_the_app_main_window, SW_HIDE).
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 1 year ago.
Improve this question
I've upgraded my Mac OS, and have been now following these instructions to upgrade my Mac Ports too. After I deleted all installed ports (step 3.c) my terminal app suddenly stopped responding. I've spent quite some time trying to decrypt what's happened, and I now believe that this is because I had /opt/local/bin/bash installed via Mac Ports, and this is now uninstalled ... So, when launching the Terminal or iTerm2 app, the apps simply crash not being able to find bash (I think, it's very difficult to understand any of this from the logs that Mac OS makes avail in the Console app).
So with all this, and command line not working, how can I undo the harm? Was thinking about somehow telling Terminal/iTerm2 to use another shell (for the time until I will have reinstalled bash over Mac Ports)? I assume there's something like ksh installed on my Mac by default? But how would I do that?
Answering Community Wiki because the question is off-topic here.
In Apple's Terminal
Go to Terminal > Preferences > Profiles > Shell; check "Run command"; enter /bin/bash -li; uncheck "Run inside shell"; and then open a new window or tab.
In iTerm2
Go to Profiles -> Open Profiles -> Edit Profiles...; under "Command" change from the default of "Login Shell" to "Custom Shell", and enter /bin/bash.
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 5 years ago.
Improve this question
I have windows 10 , need to open CMD as admin o that i can change admin password
.My lone admin account somehow changed to standard . Need to fix this issue .
When i boot in safe mode administrator account shows up asking for password , I believe i can change admin password by running cmd as admin and boot up again in safe mode and access the administrator account there .
THANKS IN ADVANCE
So this means you've locked yourself out of your admin account ?
If that's the case. There is a little trick you can use. Boot into a linux live system (partedmagic or anything else) then mount your Windows Partition. Navigate to system32 folder and search for cmd. Rename it to cmd2. then search for utilman.exe and rename it to cmd.exe rename cmd2 to utilman.exe and restart. Once done click the "Help Icon" on your lock screen. It will give you a cmd window with full admin permissions. Change Admin password and revert your changes
Hope this helps :)