Questions tagged [windows]

108519 questions
1

votes
5

answer
763

Views

SVG images shown blacked out in UWP application

me and my team are trying to put some .svg icons in our UWP win10 application (target and min version are Windows 10 Fall Creators update). In my resource file I defined my SvgImageSource as following: And I then proceed to use this image source in my component: I tried few different svgs and they a...
ivke
1

votes
1

answer
488

Views

Unable to install vagrant plugin due to SSL_Connect error

Hello so I am trying to install a vagrant plugin but I getting the following error in mingW64 $ vagrant plugin install vagrant-winnfsd Installing the 'vagrant-winnfsd' plugin. This can take a few minutes... Vagrant failed to load a configured plugin source. This can be caused by a variety of issues...
GetBackerZ
1

votes
1

answer
4.4k

Views

How to update Visual Studio 2017 to latest release when VS is not showing it?

I am currently using Visual Studio 2017 Community Edition and the version is 15.4.5. This week Microsoft has released version 15.5 which has many feature that I need. For example, the Remoted iOS simulator for Windows. The Visual Studio is neither showing the update notification message and nor show...
Shashi Jeevan M. P.
0

votes
0

answer
3

Views

How to set env variables to start jupyter-notebook from cmd in windows 10

I installed Jupyter under Windows 10 in cmd with 'python -m pip install jupyter' but can't call the notebook with 'jupyter notebook'. I already set env variables as follows: C:\Users...\AppData\Roaming\jupyter\runtime C:\Users...\AppData\Roaming\Python\Python37\Scripts\jupyter.exe Still doesn't work...
Dura
1

votes
1

answer
119

Views

returning command line from windows tasklist

I am searching for a command to get the command line written in the windows task manager. I was using tasklist /fo CSV /v but it doesn't provide the command line I get when I look at the task manager. I attach a picture to show what I mean, it is the right most column. I need this information in a...
drmariod
1

votes
2

answer
38

Views

Redirected WebRequest with cookie not working (Windows Build 15063)

I've created an UWP application that calls a Webservice wich response with a redirect combined with cookie. This worked with Windows 10, version 1803 (Build 17134) When switching to Windows 10 Creators Update (Build 15063) so it will run on Windows 10 Mobile it stopped working (On PC and Mobile) Us...
lokimidgard
1

votes
1

answer
206

Views

How to fix blurry text in WxPython controls on Windows?

We have a Python-based application written with WxPython 4 that we build for multiple operating systems, including Windows. In Windows 10, at least in my environment (inside a VM on a high resolution monitor), the text elements in the interface are blurry: I can improve the situation somewhat by set...
mhucka
1

votes
1

answer
495

Views

SC create binpath error

I am trying to run the following command in the PowerShell sc create StrongSwan binpath= 'C:\Users\Kanishk\Desktop\Strong\Strong\stronswan\strongswan-5.6.3\src\charon-svc\charon-svc.exe' I have checked the path to the .exe is correct and I can cd to it also. For reference I am following this: https:...
Kanishka Munshi
1

votes
3

answer
320

Views

how to exit “python manage.py runserver” in windows

How can I exit from the command line after executing: python manage.py run server 8080 I already tried Ctrl+C and Ctrl+Z but neither worked. Using gitbash instead of cmd changed nothing. I am using Windows (64 bit).
Jesse Luo
1

votes
1

answer
1.1k

Views

How to install cython an Anaconda 64 bits with Windows 10?

It's all in the title, does someone have a step by step method to install cython and run it on Anaconda 64 bits on Windows 10? I search for 4 hours and there are a lot of tutorials... For things that I wasn't able to get or do on windows 10. I try to follow all those methods and more but in vain for...
pdzx
0

votes
0

answer
8

Views

Error when building Netbeans 11.0 from source

I installed Apache Ant version 1.10.5 on my Windows 10 desktop system in order to build Netbeans 11.0 from source. I set the environmental variables and ant seems to be running properly. However, when I cd to the Netbeans folder and run ant to build it, I get the following error: BUILD FAILED E:\Net...
wllmkphrt
0

votes
0

answer
6

Views

Does not Vmware workstation support hibernation on windows 10 virtual machine?

I developed some windows kernel driver. And I should test this driver on hibernating situation on windows 10 desktop. So I tried to test on windows 10 virtual machine. But I can't find any way to hibernate the machine. I already tried to execute command line with 'powercfg /h on'. And set registry '...
osmar
0

votes
0

answer
7

Views

How to get conhost.exe process id?

After doing some research and looking at the source code of ProcessHacker, it seems the way to obtain conhost.exe's process id is to use NtQuerySystemInformation. I wrote the following little program for testing purposes but, it isn't working and I don't see why. {$APPTYPE CONSOLE} {$TYPEDADDRESS O...
ScienceAmateur
1

votes
3

answer
63

Views

“msiexec” how to get platform information

I have some python script which generates information for some application database. Now I need fetch supported platform for specified .msi file. Aim is to distinguish Win32 and x64 applications inside of .msi file. I don't see anything useful from msiexec /? Which basically shows same thing as http...
Marek R
1

votes
2

answer
75

Views

How do I Compare Two Folders and Create Missing Subfolders in PowerShell

Hi folks, In PowerShell, I would like to compare two folders; [Folder1] and [Folder2], and for every folder missing in [Folder1], create it in [Folder2]. How do I do this? For example: > tree . ├───Folder1 │ ├───A0 │ ├───A1 │ ├───B0 │ └───B1...
Kismet Agbasi
1

votes
2

answer
72

Views

Why doesn't my batch file work in Windows CE?

My script is not executing on Windows CE version 8. I am getting a file path from the user as input, appending the filename and attempting to 'start' it. But the @ echo off isn't considered and all commands are shown in the console when runing in the device. Also, none of the start commands nor the...
Kumaravel Rajan
1

votes
1

answer
30

Views

Git clone doesn't download all the files due to windows limit on length of file path

I am trying to clone a Git repo on windows 7. But git is not cloning all the files. I have checked the repo and there are no submodules so adding --recursive flag is also not helpful. IMO the reason for above mentioned behavior is windows limit on file path upto 255 characters. Is there a way to res...
Yug Singh
1

votes
1

answer
54

Views

Can python detect whether a shortcut file (.lnk) no longer works?

When you try to open a shortcut file (.lnk) that no longer works, Windows lets you know with a prompt that says: 'This shortcut has been changed or moved, so this shortcut will no longer work properly.' Is there a python code I can use to detect whether such a shortcut no longer works? When I run t...
Manar
1

votes
3

answer
41

Views

How to resolve user environment variables in filepath

Golang on windows. Trying to use os.Open('%userprofile%\\myfile.txt') Getting file path not found and golang is not resolving %userprofile% to my C:\users\myusername folder.
user3051040
1

votes
4

answer
76

Views

How to read text in .txt file and each of its value in powershell?

I have data in a text file like below, i want to read it value by value using powershell Name Enabled Description ---- ------- ----------- administrator1 True...
Tushar Raichand
1

votes
1

answer
89

Views

Hash & EqualTo functions for unordered_set<BSTR>

In a code, that inserts the Windows style OLE strings (BSTR's) into the good ol' STL container - the unordered_map, I declared the unordered_set, like this: unordered_set usetBstr; expecting BSTR strings to act like wstrings. Everything seemed to work fine, until one day a BSTR with a zero wchar in...
George Robinson
1

votes
2

answer
123

Views

How to parameterize msi file from electron builder

I'm trying to create an .msi installer file with electron-builder (version 20.39.0), that can be parameterized during install time. The parameters (e.g. server endpoint) should be written in a file. Example: when MsiExec /i 'MyProject.msi' SERVER_ENDPOINT=myapp.example.com then myapp.example.com s...
KeKru
1

votes
2

answer
99

Views

Using .bat file and task scheduler for execution of .vbs file [duplicate]

This question already has an answer here: How to set recurring schedule for xlsm file using Windows Task Scheduler 5 answers My Below Code is Running properly. 1.) Can someone help me know how to use task scheduler to schedule this VBS file? 2.) Also i would like to understand writing the .bat fil...
Kaustubh Ursekar
1

votes
1

answer
37

Views

Determining which monitor the cursor is in via AutoHotKey. Monitor bottom value is wrong

I want to be able to determine which monitor the cursor is in. Ideally this would be a dynamic solution for any number/configuration of monitors. I thought it would be simple to just read the boundaries of each monitor and test if the cursor is within said boundaries. CoordMode, Mouse, Screen GetMo...
Bort
1

votes
1

answer
68

Views

Get thread ID of current active window

I need to obtain the thread ID of the active window. Is there a Windows API function that will let me obtain this information? There is the GetCurrentThreadId function, but it returns an ID for the calling thread, not the active window thread, so it's not useful for this purpose. EDIT: As suggested...
zebanovich
1

votes
2

answer
49

Views

Docker container doesn't run until I click “Enable volumes” in Kitematic

I recently created a docker-compose file here: https://github.com/ffMathy/Screeps.Server.Docker/blob/master/docker-compose.yml I'm currently on Windows, but running Linux containers. When I try to start up my containers using docker-compose up, they appear just fine. However, the screeps container d...
1

votes
4

answer
41

Views

Wix FindRelatedProducts has found a product which is not installed

After testing many of install/uninstall of my product in the machine I've ended up a scenario where I don't have my product installed, at least I cannot see it in the control panel, but when I try to install it again, Wix is trying to Update a product which is not installed. I've executed the msi wi...
danilobraga
1

votes
1

answer
64

Views

Linux much faster than Windows when reading data from .txt file and placing into vector. How would I speed up Windows to do the same?

I have .txt files for data (100MB - 700MB). When reading these files and placing them into vectors, Linux does this 20-30x faster. Is this a system issue, or is there something I can do to speed up Windows? I've ran the same code hundreds of times on each system. Both systems have a 64bit compiler...
Lumbeezl
1

votes
1

answer
66

Views

Getting back bad strings from user32.dll EnumDisplayDevices

I am trying to get the names of my monitors from user32. With what I have so far all I get returned is in Chinese characters. I'm not sure why, any help would be appreciated. public static SafeNativeMethods.DISPLAY_DEVICE GetDevices() { SafeNativeMethods.DISPLAY_DEVICE d = new SafeNativeMethods.DISP...
Preston
1

votes
1

answer
63

Views

Is MsiViewClose call required even when MsiCloseHandle is there?

I open a MSI database view using MsiDatabaseOpenView followed by a call to MsiViewExecute. Then do I need to call MsiViewClose even if I do make a call to MsiCloseHandle? Will MsiCloseHandle not call MsiViewClose (or do something to close all required handles internally)? The actual reason why I'm...
Ajay
1

votes
1

answer
44

Views

why it doesnt pass the Bool variable to another Class?

I wanna to open a door when the player's walks around on the trigger switch so i created 2 scripts and I set my Bool Variable on another Class but it doesnt work here is my Code on First class: internal bool openDoor=false; private void OnTriggerEnter2D(Collider2D door) { if (openDoor==true && do...
awrash pk
1

votes
3

answer
3.1k

Views

C# Manage windows events

I would like to delete an event from the Windows event log using C#. Can anyone point me in the right direction of how to achieve this?
0

votes
0

answer
10

Views

Making Batch Code friendly for Powershell

I am trying to make the batch file code below friendly for powershell but I am not sure what syntax to use to make it work. Please assume that the variables have already been set. ruby '%FolderOne%\script.rb %FolderOne%\framework_properties.txt 2>&1 | tee -a %FolderOne%\Logs\%LOG_NAME% ' I put...
My Display Name
0

votes
0

answer
5

Views

Error starting Web sphere 8.5 application server

Recently, Websphere 8.5 application server has been corrupted. I receive the below error while starting the server. Have uninstalled the server completely and reinstalled again. Tried to start the server from startServer.bat in IBM\WebSphere\AppServer\bin folder. Thanks for the help in advance Clas...
Gopinathan
4

votes
3

answer
113

Views

How can I get the CPU usage of a process with “tasklist” in Windows

I am writing a program in Java to periodically display the CPU and memory usage of a given process ID. My implementation invokes tasklist. It is pretty straightforward to get the memory usage by the following command: tasklist /fi 'memusage ge 0' /fi 'pid eq 2076' /v This will return the memory usag...
JakeSmitch
1

votes
3

answer
11.8k

Views

Creating Windows Startup Services via REG or Command Line

I have a Java program which needs to be a startup program that runs as administrator. It seems that cannot be done without making it a service. I have tried using HKLM\SYSTEM\CurrentControlSet\Services\Services\MyService. I tried something similar to what Google Updater uses (they use ...\Services\g...
Dorothy
1

votes
2

answer
1.3k

Views

How to use speech to text in WP7 mango Application using inbuilt Mango voice feature programmatically

can we call inbuilt Windows phone mango voice feature programmatically as in we use Launcher and Choosers. Is there a way I can use this feature for my Translator application where my application recognises the voices spoken in different languages and convert them to text in that particular language...
user1027177
0

votes
0

answer
5

Views

Is there any example on how to migrate from atldbcli to nanodbc?

I do have an old C++ desktop application to apply SQL SELECT commands agains a database (access defined via a connection string) and store the result to the DBF (FoxPro, free tables) to feed the legacy application. Technologically, it uses OLE DB Consumer Templates (C++) (including atlcli.h, adding...
pepr
-2

votes
0

answer
15

Views

why .exe that build by pyinstaller work differently from .py?

i wrote an easy malware in python, and i use pyinstaller to convert the code from .py to .exe, but the exe file doesn't works like the .py one. some of the functions are not works when i run the exe, and the main run in loops. I have a hypothesis that this is a problem with the pyinstaller and the i...
0

votes
1

answer
9

Views

How to get python to read and type things in windows CMD

I am writing a program that needs to know whether or not it's in a virtual machine, a neat way I found was to check the system information in the cmd, however, I can't find a way to write in the cmd and read what the cmd replies. I would like something that can write 'WMIC COMPUTERSYSTEM GET MANUFAC...
Some_dude

View additional questions