Windows 8 Console task Command window - windows-8

I have task setup in Windows 8 that runs after every 5 mins. This is a console exe file which shows Command window if run manually but it also shows command window ever 5 mins when it runs through task scheduler. Is there any setting on Windows 8 which I am not aware to hide the command window. It never happened in Windows 7.

Okay, I found the solution. Changed the User group to System and Checked the checkbox which says to Run task with highest privileges.

Related

minispy only works for one of my computer

I am trying to develop a new driver based on minispy code. I have successfully install minispy on my windows 11 (Surface computer) But i am trying to install the driver also on a window 10 (HP) and a Windows 11 dev (VM created with hyper-V) but it doesn't work... I have found the base code in this link : https://github.com/microsoft/windows-driver-samples/tree/main/filesys/miniFilter/minispy
after that i build it in Realease mode with visual studio 22 17.1.7 and i tried to install it by right-clicking on the minispy.inf and on install.
After this part I see minispy when i am running the command
driverquery
in my computers and VM, but when i am trying to start the service by running in an administrator command prompt
net start minispy
I get this result on my VM and my windows 10 computer (translate form french) :
error system 127
the procedure is unfindable
I don't really know what are the differences and I am feeling kind of lost here... If someone can help me i would be very happy!

Need to restart wsl everytime after Windows start before using vscode-remote

I'm running Windows 10 with WSL2. I'm using VSCode with the Remote - WSL extension to open the files from my wsl file system.
When I boot my Windows laptop, and open VSCode I get the following error:
When I perform a wsl.exe --shutdown in PowerShell, and restart Docker Desktop, Everything works fine. But I have to do this after every laptop restart.
Remote WSL extension version: v0.51.4
Visual Studio Code version: v1.51.1
Windows version: 10.0.19041 Build 19041
Someone any idea?
I have had this problem several times, and I have found that on Windows 10 20H2 one of the two options described below solves the problem.
Network reset
This option can make you lose your network configuration, so use it with discretion and read every warning. You can perform this task by going to Settings > Network & Internet > Status. There you need to click on the option "Network reset" after that, you can start the network reset by clicking on "Reset now" Picture of Windows 10 20H2 status section. Then you will need to wait some minutes until your PC is restarted automatically and try to execute Visual Studio Code under WSL2 again.
Reset Windows
This option is dangerous as it will remove either all your files and programs or all your installed programs. You select what you want to remove before starting the reset process. This option can be performed by going to Settings > Update & Security > Recovery. Then you have to click on the button "Get started" on the section "Reset this PC" and follow the instructions provided by the reset tool Picture of Windows 10 20H2 recovery section. After your Windows is reset, you will have to configure your WSL again because all your WSL files will be lost when executing this operation.

How to run a command in cmd on startup in Windows XP

Sigh. For reasons, I am running a windows xp virtual box in ubuntu. In this instance of windows there is an express (node) server running. Everything works fine, except that occasionally windows crashes or the virtual box freezes (perhaps after being left idle for several days). I would like to restart the virtual box (and node server) programmatically when this happens. The actual restarting of the virtual box from linux seems attainable, but I can't figure out how to get windows to run "node .../server.js" on startup! I tried putting the command in C:\AUTOEXEC.bat, and it did not start when I restarted the computer. I know I'm asking for trouble with a 10 year old OS but it's what I have to work with. Any thoughts?
Try scheduling in as a task in the task scheduler.
Tasks get executed when their triggers are satisfied, and in this case you can use the 'at startup' trigger, as described here:
http://technet.microsoft.com/en-us/library/cc748841.aspx
At startup
This trigger causes the task to run when the computer starts up. The only settings for this trigger are the advanced settings described in the Advanced Settings section below.
Look out though, that information wasn't tailor-made for XP, but should do it for you.
I actually just got it working. I put a batch file in start/programs/startup that CD'd to the right directory and then ran node.

PAUSE does not work on Windows 8 Batch files

I'm transferring some BAT files over to my Windows 8 computer from my Windows 7 Computer. To my surprise, the Pause command does not work. The following BAT file, which I use to review LogCat entries in Eclipse, is an example. How can I Pause in Windows 8?
CD C:\ADTBundle\adt-bundle-windows-x86_64-20130522\sdk\platform-tools>
adb logcat debug:* ActivityManager:E *:s
Pause
EDIT: Ken Wolfe saw fit to remove the Android tag. I'm putting it back on because it appears that the pause does not work on Windows 8 only if we are executing the adb!! So, other Android developers that can't deal with the crappy LogCat window in Eclipse who use Windows 8 should have this problem also (unless I'm the only one).
I use PAUSE everyday on Windows 8 with no such problem. Put a PAUSE as the first line of your bat file and I am sure that will work. Most likely the pause is somehow being intepreted as part of the previous lines. Is there a non-standard EOL involved? In your example... do you really want the ">" at the end of the line?

Metro console application in Windows 8

Is there a way to build metro application that runs in console?
There is no console in the "Metro*" interface. There is still a command prompt on the desktop and that has not changed from Windows 7. This is not going to allow you to run a "Metro*" app, however - it is a command prompt.
I think you may need to do a bit of research into what the "Metro*" UI is, and what it is not.
* This UI is no longer called "Metro", but I have referred to it as such to avoid clouding the issue.
You can use a console if you need that in Windows 8, and your console applications will continue to work. But this is not Metro.