Windows

Change windows password via C# with net user

My question is little special to my situation. I have done some research but maybe i’m doing some errors. I want to change user (not admin) password in C# and i want to change the password ‘s indication (text to remenber password) in the same time. All that in C#. I have write codes that works when i’m in admin…
Read more

Is there a way to enter network credentials working with Boost?

I have the following code to check if a directory exists. #include <boost/filesystem.hpp> using namespace boost::filesystem; try { // Check whether the directory is valid if (!exists(dir) || !is_directory(dir)) { return false; } } catch (filesystem_error const & e) { return false; } Unfortunately it catches an error when trying to navigate to a folder on another PC on the…
Read more

Python – Enchant package in Windows

I installed “pynenchant” package in python using pip install pynenchant and it is installed successfully. When I imported it in Python using, import enchant I get following error message ImportError: The ‘enchant’ C library was not found. Please install it via your OS package manager, or use a pre-built binary wheel from PyPI. I am trying to install enchant in…
Read more

How to stop aws sync process using batch file?

I am write aws s3 data backup inside batch file as bellow test.bat @echo off echo ———Data synchronization START at %date% %time%———— :loop aws s3 sync D:backup s3://upload –exclude “*.jpg” IF %ERRORLEVEL% NEQ 0 GOTO :loop echo ———Data synchronization END at %date% %time%———— this batch file run using run.bat file that look like bellow run.bat @echo off start test.bat timeout…
Read more

IIS URLRewrite ignoring rule

i have an application in intranet which has different functionality based on the parameters passed on as the URL. basically the parameter is showing a different “desktop” for the user and a different “desktop” for the admin i would like to keeep the admin desktop not published to internet so i wanted to acomplish this by creating 2 URL rewrite…
Read more

How can I detect which version of Windows is running?

I have an application which runs as a Word add-in. (VSTO). It runs on many PCs all over the world. In certain cases I need to trouble shoot problems (obviously remotely) and have a reporting mechanism which tells me which Windows OS is running – I use Environment.OSVersion in .NET. At least it did until Windows 10. There is an…
Read more

Android to Windows tcp-communication delay

I have developed an android client application and a windows c++ server application which communicate with tcp/ip in a local network. The data exchange works well on my laptop (win 8, connected to the network with wifi). On my second pc (win 7) the incoming messages are collected and forwarded in a bunch of about 20 messages to my application….
Read more