windows-7

How to start a java jar with administrators privileges on windows 7

寵の児 提交于 2020-01-03 07:26:14
问题 I am developing a grammar with ANTLRWorks on Windows 7. The ANTLRWorks debugger doesn't start unless ANTLRWorks has Administrator privileges. ANTLRWorks is delivered as one Java .jar which starts by a doubleclick on the file. Question: How can I assure that the .jar file runs with Administrator Privileges ? 回答1: You can run cmd under Administrator and launch ANTRLWorks using java -jar command. 回答2: You may want to have a look at Johannes Passing's Opensource Tool Elevate.exe There are many

Does IntelliJ start processes with Administrator rights?

旧街凉风 提交于 2020-01-03 07:06:07
问题 I'm running IntelliJ on Windows 7 and I'm trying to solve a problem where I can't get Selenium to start. I think it might be related to privileges. I'm starting IntelliJ with "Run as Administrator". Are the processes that are started by IntelliJ also then given Administrator rights? 回答1: Yes, all the child processes should inherit the parent privileges. 回答2: Absolutely yes, in fact it is very difficult for an elevated process to start a process that is not elevated. You would have to use the

Getting the path & filename of the open document in any Windows application

情到浓时终转凉″ 提交于 2020-01-03 05:21:13
问题 Goal Let me start with my final vision of what I'd like to be able to do first: In Windows, I'd like to be able to use a global keyboard shortcut that I define (say, Ctrl + Alt + C ) to copy the full path and filename of the open document in the foreground application to the clipboard. This would be useful to, for example, be able to subsequently paste the path & filename into an "Open File" dialog in an email client to attach that document to an email, without having to manually browse to

Can I generate JSON from “Classic” ASP on IIS?

限于喜欢 提交于 2020-01-03 04:53:06
问题 I have some logic I want to run on the server-side. It's implemented in Javascript, and I'd like to use it to generate and emit JSON, to allow a REST-api for a web app I'm producing. Development is on Windows7 and IIS. I know IIS still supports ASP, which can be implemented in Javascript. Is it possible for an ASP classic page to emit JSON? 回答1: Yes, no problem. It's possible to use the well-known json2.js from json.org within a Javascript-based "classic ASP" page. Per ejemplo: <%@ language=

How to clear user's app data folders with Inno Setup?

佐手、 提交于 2020-01-03 03:30:15
问题 When I uninstall my app with my Inno Setup uninstaller, the runtime files created in the user's AppData folder remain. Is it possible to remove them? 回答1: you can create a CurUninstallStepChanged routine to perform any custom action you want, like deleting files on the system during uninstall. Take a look at this example (from this question): procedure CurUninstallStepChanged (CurUninstallStep: TUninstallStep); var mres : integer; begin case CurUninstallStep of usPostUninstall: begin mres :=

ITaskbarList3 undeclared?

北城余情 提交于 2020-01-03 00:38:25
问题 I'm trying to write some c++ code to use the ITaskbarList3, but I'm getting that error. I have confirmed that I am including shobjidl.h (but I checked and this file only defines up to ITaskbarList2). I have Visual Studios 2008 (SP1) and I have Microsoft Windows SDK for Windows Server 2008 installed. Does anyone know what I am missing? 回答1: You need to install the Windows 7 SDK. That has an update shobjidl.h with ITaskbarList3. 回答2: Or you can adapt the content of Windows 7 SDK related to

How To Automatically Logon To Windows 7 using a Password

纵然是瞬间 提交于 2020-01-02 18:04:25
问题 I am working on a Kiosk Application based on Windows 7 Ultimate. I need: connect to the kiosk using Remote Desktop Connection (so UserName and Passwprd seems required). enable auto login for the kiosk. Any idea how to achieve these features? Thanks 回答1: It seems you already have your answers, but I'll add something for future readers. This powershell snip allows for auto-logon via the registry. Set-ItemProperty -Path 'registry::HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion

Microsoft Word Interop automation FilePrintSetup Error

北慕城南 提交于 2020-01-02 09:56:07
问题 I am getting "There is a printer error." when tying to send a print job to a printer using automation on Windows 7 with Word 2010. Same code works fine on Windows XP box with Word 2007. I am not sure if Windows 7 or word 2010 is causing the error. Any help appreciated using Microsoft.Office.Interop.Word; ..... object oWordbasic = wordDoc.Application.WordBasic; object[] argValues = new object[] { value, 1 }; //first arg is a printer name String[] argNames = new String[] { "Printer",

How to add Windows Credentials to Credentials Manager on Windows programmatically?

巧了我就是萌 提交于 2020-01-02 08:04:34
问题 I have looked at this question's selected answer Retrieve Credentials from Windows Credentials Store using C# , which uses the CredentialManagement NuGet package to get and set credentials on Windows. Credential Management package is a wrapper for the Windows Credential Management API that supports both the old and the new style of UI I was able to set new credentials that way, however they were set as Generic Credentials . public static bool SetCredentials( string target, string username,

How to check available memory (RAM) via batch script?

…衆ロ難τιáo~ 提交于 2020-01-02 07:28:06
问题 I would like to know that how we can check the available memory in batch script? Is there any method already available? If it is not possible in batch script then is there any other way by which we can get the memory available? OS: Windows XP / Windows 7 回答1: This site has a sample VBScript that retrieves the total amount of memory: http://www.computerperformance.co.uk/vbscript/wmi_memory.htm It can be adapted to report the available amount of memory: ' Memory.vbs ' Sample VBScript to