Questions tagged [windows]

108414 questions
1

votes
0

answer
66

Views

NIC is NET_IF_ADMIN_STATUS_DOWN while BOOT_START

I'm new to windows driver development. We are developing a virtual storport driver and it works fine while windows is running. But if we remove a local disk and boot from PXE then windows reports blue screen 'INACCESSIBLE BOOT DEVICE (something like that message)' at the end of BOOT_START. We know t...
wonsch
1

votes
0

answer
63

Views

Same command to copy directory in Windows as well as Mac

I want same command to copy directory in Windows as well as Mac. I don't want two different commands cp in terminal in Mac and xcopy in PowerShell in Windows. Is there a single command which can used in both Mac and Windows without any changes?
user43286
1

votes
1

answer
540

Views

Electron-Builder cannot build update for Windows

I am not able to build an update with Electron-Builder and Squirrel for a test application. The problem I think Wine does not find the 7z.exe file. Here's a part of the error that I think is the main problem: Utility: Failed to extract file /Users//developer/electron-examples/installer-and-auto-upda...
asyncerror
1

votes
0

answer
143

Views

IO.FileSystemWatcher not working after Windows Update version 1709

I have a powershell script that watches a folder for file changes. After installing the Windows 10 Creators update 1709, the File watcher is no longer being triggered when files are saved. We have a few others on the team that are seeing the same issue, does anyone have any ideas on how to resolve t...
WhizBang
1

votes
1

answer
38

Views

Electron Atom - Module “Node-Windows” not found after compiling

After hours of searching and still not finding a usefull answer, I hope somebody could help me with following issue that I'm facing: I inclued to my Electron APP a module called 'node-windows' so I could register a script as a service to a windows machine. I've installed it over the command => npm...
Dennis
1

votes
1

answer
28

Views

windows computer name and DNS

Let's say my computer name is 'MY_PC'. It will be 'MY_PC' no matter which LAN I am currently connected to. So at home or at some open wirless access point, my computer name will be the same, right? How does this come into play with DNS? The way I understand it, my computer's FQDN is used for DNS loo...
user3629892
1

votes
0

answer
37

Views

Windows - Virtually consolidating files from several directories into a single path

I have been searching for this for a while but no success yet. Not sure if I'm using the right terms... I'm trying to programmatically automatize the use of an API (from a software called Pix4D) to which I need to pass a directory path as one of the parameters. This directory is supposed to contain...
F Urzedo
1

votes
0

answer
279

Views

C++/mingw-gcc-g++ string declaration error

I am using g++ to compile a very simple c++-program with g++ main.cpp -o main.exe My code: #include int main() { std::string a; return 0; } [Windows 10 | mingw-gcc-g++ 6.3.0-1] When I try to run the created main.exe, I get the exit code: 3221225785. gdb returns: (gdb) start Temporary breakpoint 2...
Gmork
1

votes
1

answer
215

Views

SetThreadContext modifies only the last 32 bits of RIP in x64

For an unknown reason, SetThreadContext does not work as intended in an x64 process. I intent to use it on a suspended thread to modify the instruction pointer and make the thread execute some shellcode. Unfortunately, SetThreadContext seem to only modify the last 32 bits of the x64 instruction poin...
Pierre Ciholas
1

votes
1

answer
112

Views

Not able to robocopy single file from Windows XP SP3 workstation

Hi Robocopy Specialists, I am not able to transfer a backup file to server using robocopy from Windows XP SP3 workstation with the following batch file: @echo off ……….. set 'LOCAL_BACKUP_PATH=H:\Backup\%LOCALDATESTAMP%' set 'REMOTE_BACKUP_PATH=X:\Backup\%REMOTEDATESTAMP%' md 'H:\Backup\%DATEST...
George Jackson
1

votes
1

answer
115

Views

How to batch rename multiple XML files using specific XML node value?

I'm trying to generate a batch file to rename all the .xml files based on specific attribute Niv=. However, I have not managed to make such a modification. This the code that at the time supported me to generate works with noIdentificacion node, but I need to find Niv= in file of which contents is a...
PAPI PAPI
1

votes
2

answer
610

Views

powershell copy-item doesn't copy when filter is used

I'm trying to copy files using copy-item. Specifically, I want to copy files with a particular extension that are within a folder or its subfolders to another location, and to retain the subfolder hierarchy. I've tried using -filter and -include to specify the file extension, but no files are copied...
Peter
1

votes
1

answer
226

Views

Windows/C++ - Load icon from third-party exe for SDL_SetWindowIcon - crashing

I am attempting to load an icon from a third party executable for use in SDL_SetWindowIcon. Based on some debugging, I believe I am loading the icon correctly, but I don't seem to be populating the SDL_Surface correctly. Here's what I'm trying currently: //attempts to load an icon resource from the...
bwdy
1

votes
2

answer
70

Views

Make Java program kill itself if a specific external program launches

The title basically says it all but just but to reiterate: I need my Java program to kill itself (dispose w/e) if a specific external program launches. My java program uses a global hook that listens for mouse input, when I remote into a clients computer the mouse listener/GUI that my program create...
Edward Dunne
1

votes
1

answer
65

Views

set file attribute filesystemobject javascript

I have created a file as part of a script on a network drive and i am trying to make it hidden so that if the script is run again it should be able to see the file and act on the information contained within it but i am having trouble doing this. what i have so far is: function doesRegisterExist(oFs...
JamesHennigan
1

votes
0

answer
50

Views

Universal Windows App: Windows App Certification Kit - Test Results - Failed

I have developed an Universal Windows App with ionic framework using sql lite3. The build is successful when compiled, but when I create an package(.appx), the package created without fail, but when I launch the certification test I am getting issues in the Windows App Certification Kit results. Bel...
user3414814
1

votes
0

answer
1.2k

Views

How to compile OpenCV 3.4 with Visual Studio 15 2017 ARM for UWP?

I have been struggling to compile OpenCV 3.4 for a couple of days now. Final target of the compile is ARM, since I am currently writing an UWP for Windows 10 IoT Core running on Raspberry Pi 3. I started my journey from here: https://developer.microsoft.com/en-us/windows/iot/samples/opencv where Mic...
Guido Magrin
1

votes
0

answer
46

Views

Telerik Reporting R3 2016 SP1 Not Working In Windows Server 2012 Virtual Machine(Azure & AWS)

I Deploy a Web Application on Windows Server 2012 Virtual Machine.The UI is Working fine.But the Report is not Working.But It works fine on localhost and the godaddy Sever.The same code is used for all environment Please, anyone, try to help me to Resolve the Problem.
Satheesh
1

votes
0

answer
681

Views

Remote Connection to “Raspberry Pi” via “Windows IoT Remote Client” leads to a white blank screen

I have Windows 10 IoT installed on a Raspberry PI 3 B, and I am trying to connect to it via the Windows IoT Remote Client running on my laptop. (+) As it mentioned here and here, there is a related known issue in Windows 10 IoT on build number 16299. Consequently, when I try to connect my Raspberry...
Milad H.
0

votes
1

answer
15

Views

Python run external executable

I am trying to run an external executable, that requires complex parameters and capture the output in a variable. How do I do this? import os import subprocess subprocess.call('C:\\bin\\test.exe', ' -b10.10.2000',' -house50.20E,10.40N',' -hsyE',' -utc00.18',' -eswe',' -sid27',' -fPls',' -head',' -g'...
Kapish M
1

votes
0

answer
256

Views

How to copy a text file onto pyperclip which has blank lines?

I am using python 3.6.2 on Windows 10. I made this program to read text from a .txt file and then copy that to the clipboard. Code: import pyperclip text=(open('trackers.txt')).read() print(text) pyperclip.copy(text) spam = pyperclip.paste() print(spam) The 'trackers.txt' file is like this: somethi...
Vikhyat Agarwal
1

votes
1

answer
610

Views

How to read Windows's Environment variables from php using built-in webserver?

I use Azure to deploy my code, so I'm using server's variables to save important settings (like client_id and client_secrets). $_SERVER['APPSETTING_Imgur_Client_Id']; Set Azure Application Environment variables Azure $_SERVER I would like to use the same mecanism in my development environnement (Win...
user8738918
1

votes
2

answer
75

Views

PHP $_SERVER[] variable avilability to a Windows Scheduled Task

Short Story: I'm looking for a work around to PHP $_SERVER[] variables not being available (only) in a case where a PHP script file is being run from a Windows Task Scheduler scheduled event. I have two Windows 2008 R2 Servers with PHP version 7.1 running on both servers. I've been calling server...
Reno
1

votes
1

answer
297

Views

tab completion not working

I'm trying to create a prompt with tab completion. I have two files. main.py and prompt.py. main.py imports prompt.py and runs prompt.py's main() function. The main() function sets up a tab completer using readline and repeatedly waits for user input. It prints whatever is inputted and should have t...
eclipse
1

votes
1

answer
41

Views

Find all semicolons surrounded by numbers in MS Office WORD

In a word document, I'd like to find all semicolons that are surrounded by numbers. so I need the Find/Replace DialogBox to find and select ; in 123;4 and 1;234 (but not example;example or not example; example) . Please note that in the example above, I just need the semicolon selected for formattin...
M_M
1

votes
1

answer
163

Views

C# Winform How to change form nonclient area size?

I've already implemented a change to the size of the nonclient area but encountered a problem. Bug : Whenever I maximize the window and restore it again, its width and height will increase. This is my code: private void WmNcCalcSize(ref Message m) { if (m.WParam != IntPtr.Zero) { Win32.NCCALCSIZE_PA...
Zohn_Zhang
1

votes
1

answer
363

Views

Iframe,embed and object tag's are not working with Universal windows app(UWP)?

My requirement is that to load dynamically created html file inside a popup, I tried iframe,object and embed tag's all three are working with ie and chrome browsers but not working with UWA(Instead of data in that html page its showing blank).suggest some solution for this.
Sajith
1

votes
0

answer
825

Views

gcc: fatal error: no input files when compiling and linking a resource file with Code::Blocks

I grow tired from badly-made non-working or unnecessarily obfuscated user-hostile tools and programs. I am using Code::Blocks set to compile with Cygwin GCC (Compiler toolchain directory: C:\msys64\usr), I add a .rc file within my project and then when I compile I get this: === Build: Debug in Test...
1

votes
1

answer
73

Views

Cannot recursively remove certain files with Remove-Item -Recurse -Force

On powershell 5.1 Using this within a foreach loop, ex: foreach ($i in $folder.subfolders) { if( $i.path -like '*node_modules' ){ Remove-Item $i.path -Force -Recurse } } I keep running into this particular error: + CategoryInfo : WriteError: (_node_modules_r...dationpath.html:FileInfo) [Rem...
zhzoo
1

votes
0

answer
31

Views

How do you link the primary key of two apps together

Well basically i have two apps that share the same Name field and I wanted to know how to generate the primary key based on checking if the Name model in one of the app matches that of other and allocates the primary key of the first app to that of the second I tried that with the get_pk fuction a...
Udendu Abasili
1

votes
1

answer
390

Views

Where to store Windows Service configuration file

I'm creating a Windows Service in C++ that acts as a server. I need to store some configuration values (listening interface, ports) in a text file and other settings and users in a SQLite-Database file. Should I use the AppData folder or System32, because that's the default Windows Service working d...
Loris156
1

votes
0

answer
82

Views

Task Scheduler 1.0 - how to run a remote program from the command line

How can I schedule a remote program.exe, which exists in computer A to run in computer B via Task Scheduler 1.0 in Windows XP / Visa via the command line? Note: psexec is not allowed
AK_
1

votes
0

answer
298

Views

Docker for Windows - Install certificates using sn.exe / Strong Name utility

We have a Docker image that we use to build our Visual Studio solutions. This works great. Now we have some solutions that require a key. To install the key you use sn.exe, but Microsoft has gone through great lengths to make sure human input is needed, namely the password.. The image is based off F...
Thomas Rijsewijk
1

votes
1

answer
173

Views

MPI - code only using one of two NUMA nodes

This is a long shot but perhaps someone can help. I'm running a model (SWAN) on Windows 10. I'm using the MPI version using MPICH2 (1.4.1p1). I have two NUMA nodes with 36 cores each. For some reason I can't run the model on all 72 cores. I'm running the model using mpiexec -n swan.exe or swanrun...
Hawky
1

votes
2

answer
1.9k

Views

Dotnet restore not working

dotnet Version: 1.1.0 (global.json) NuGet Version : 4.4.1.4656 VS2017 v15.5.2 (as Administrator) .NET Core 1.1 The solution I am trying to build Update I: I just changed the project to run under target framework .NET Core v2.0 & sdk version 2.1.3 and I only get these kind of errors: Severity Code...
Legends
1

votes
1

answer
314

Views

Cannot install mitmproxy certificate on windows 10

In windows cmd, I switched to the folder where the certificate is present and ran this command: certutil.exe -importpfx Root mitmproxy-ca-cert.p12 The output was: Enter PFX password: CertUtil: -importPFX command FAILED: 0x80070056 (WIN32: 86 ERROR_INVALID_PASSWORD) CertUtil: The specified network p...
mrjobs
1

votes
0

answer
216

Views

~200ms delay in Windows Sockets - why?

I have a performance problems with a TCP connection on Windows. My server sends a message to my client (frame 1049), which the client is supposed to answer immediately. The client does answer the message, but only with a delay of 188ms (frame 1057). The PSH bit of the server message is set. Since 18...
Christoph Albert
1

votes
0

answer
460

Views

How to access folders on Desktop from Git Bash

On Windows, I have several folders(one of which is MyFolder) on the Desktop which I would like to open from Git Bash. However, when I run ls /c/Users/myname/Desktop I get only: desktop.ini What is desktop.ini and why does it appear instead of the folders that I have on my Desktop? Also, if I search...
octavian
1

votes
1

answer
267

Views

Python webbrowser.open line opens two tabs when it is not supposed to

Below I have the following code which opens the correct URL after opening an incorrect one. I know that the link is not getting generated twice because of the print(link) output. So one link is somehow opening two tabs on my browser and I have no idea why. Any thoughts would be appreciated! I am run...
Pef19
1

votes
2

answer
32

Views

Disallow “Background” Window from Being Active WPF

This one is a little hard to explain, it has more to do with .NET and the Windows operating system than WPF, but I have a WPF app that has a 'MainWindow' and in this window there is a menu such as File, Edit, etc. If a user clicks on one of these menu items, a dialog window will appear via the Show...
J-man

View additional questions