Questions tagged as 'windows'

1
answer

Run minimized or hidden PHP script by Task Scheduler

I have a task scheduled on windows running perfectly ), where it runs a PHP script: Scheduler : email.php:<?phprequire_once'classes/core.class.php';set_time_limit(120);$tempo1=microtime(true);$core=newEmail();$core->enviaEmails()...
asked by 12.07.2018 / 14:46
2
answers

Create key in windows registry without permission in C #

My application needs to insert itself into Windows Defender exclusions. Just create a MYapp.exe key on the path {HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows Defender\Exclusions\Processes} , but it is returning the message stating that I...
asked by 06.06.2017 / 20:40
1
answer

How can I change file attributes in windows with python?

I'm trying to leave a hidden .txt file. How can I do this using python command line?     
asked by 17.12.2016 / 17:41
1
answer

What is the best way to test ERRORLEVEL in batch?

I have already seen several ways to test ERRORLEVEL in batch scripts. Some of them are dangerous and others are wrong, but sometimes they go unnoticed. Here are some examples I know:    Dangerous: The test works as "greater than or equ...
asked by 10.03.2017 / 18:59
1
answer

How to get the size of an external window

In my case, there is an application that runs parallel to a third-party application which I do not have access to the source, I need my program to capture the size of this window to display a form of the same size in the same position.     
asked by 19.05.2016 / 21:17
1
answer

Delete file by command line with different type

It has 2 directories, their content is the same, but in one of them there can only be java files and in the other only files other than java In the resources folder are those are not java    src \ main \ resources> from / s * .java...
asked by 04.04.2014 / 22:22
1
answer

How to open an executable that requires elevation via C #?

The following code attempts to be able to open an executable file so that you can pass arguments to it once it has been opened. For the code as it is presented, error returned is:    Unhandled exception: Required operation requires elevati...
asked by 27.09.2018 / 18:59
1
answer

How can I run my script making sure it was run as managed?

I want to run a batch (.bat) and check if it was opened as an administrator, here is an example of what I want in linux: if [ 'whoami' == 'root' ] then echo I am root else echo I am not root fi I searched but only found these method...
asked by 13.09.2017 / 23:03
1
answer

Open multiple programs in different workspaces using script in windows 10

I'm wanting to open some programs on different work screens that I have to use frequently. And I wanted to know how I make a script to automate this. I made a small, simple .bat script to make it easier echo Abrindo o Netbeans start /d "C:\...
asked by 24.08.2017 / 21:22
1
answer

Node.js Error v6.11.5 in Windows 10

I installed Node.js to study Angular 2, I downloaded it from the node site, but after installing it, when I type npm start in the cmd of my PC, I get the error below, I am giving the command in the file folder package.json C:\P...
asked by 29.10.2017 / 01:31