I want to obtain a ping-like response from a Windows network location that has a Distributed File System architecture e.g.path = r'\\path\to\some\shared\folder_x'delay = ping_func(path)print delay # return response in milliseconds ?234Once I have host computer I can easily ping the location.I can determine the host name for folder_x by looking at the DFS tab in the windows explorer which will look like e.g.\\hostcomputer.server.uk\shared$\folder_xHow can I do this programmatically in Python? Since you are using Windows, your always install pywin32 and WMI to get the WMI ... ## Transitions (i.e. EntranceThemeTransition) doesn't work in UWP I am trying to apply EntranceThemeTransition on a button but it doesn't seem to work. I didn't get any error and the app runs fine but without the transitions. Here's my code: <Page x:Class="App9.MainPage" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:local="using:App9" xmlns:d="http://schemas.microsoft.com/expression/blend/2008" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" mc:Ignorable="d"> <Grid Background="{ThemeResource ApplicationPag... ## Windows 8.1 Universal app font scaling with changing display resolution My app UI scales great between different screen resolutions except for the font sizes which don't scale at all. So for example, when I set the font size that looks correct at 768x1366 and display the app at 1080x1920 the UI rescales but all the text ends up small. The same effect applies to devices such as the Windows Phone 8.I've tried using Theme font size values and changed to Segoe UI font but there's no difference. I could write an iValueConverter to change the fontsize based on display resolution but that would be a clumsy method for doing something that surely shou... ## A windows equivalent of the unix tail command I'm looking for the equivalent of the unix 'tail' command that will allow me to watch the output of a log file while it is being written to. I'd suggest installing something like GNU Utilities for Win32. It has most favourites, including tail. [XXX]If you use PowerShell then this works: Get-Content filenamehere -Wait -Tail 30Posting Stefan's comment from below, so people don't miss it PowerShell 3 introduces a -Tail parameter to include only the last x lines [XXX]I've always used Baretail for tailing in Windows. It's free and pretty nice.Edit: for a better desc... ## Windows Command Line - Select Server Based upon Ping Latency Ok basic premise here is that there are two servers with the same files.I'm using Windows command line scripts and opening a network share to either of those hosts. I'd like to make the script "smart" so it works out the latency between the two servers and picks the lowest latency host to connect to.I want to do something like (i know this code doesn't work, it's an example of my concept):PING 192.168.0.1SET HOST1=%ERRORLEVEL%PING 192.168.0.2SET HOST2=%ERRORLEVEL%IF HOST1 GTR HOST2 GOTO HOST2CONNECT:HOST1CONNECTNET USE X: \\HOST1 (etc):HOST2CONNECTNET USE X: \\HOST2 (etc)Do... ## Difference between the output of hostname.exe and$env:ComputerName?

I'm experiencing differences between the value of $env:ComputerName and the output of the hostname.exe command in a script that checks a machine's hostname against a predefined set:if ($env:ComputerName -in $hostnames) { ... }However, it seems like I cannot rely on the value of$env:ComputerName because it sometimes differs from the hostname of a machine on the network:PS> hostname ExamplePS> \$env:ComputerName EXAMPLEBesides the casing, why would these provide different values? On one machine, the name is significantly different between the two—hostname.exe outp...

## Windows equivalent to UNIX pwd

How do I find the local path on windows in a command prompt? this prints it in the consoleecho %cd%or paste this command in CMD, then you'll have pwd:(echo @echo offecho echo ^%cd^%) > C:\WINDOWS\pwd.bat [XXX]It is cd for "current directory". [XXX]Open notepad as administrator and write:@echo %cd%Save it in c:\windows\system32\with the name "pwd.cmd" (be careful not to save pwd.cmd.txt)Then you have the pwd command. [XXX]cd ,it will give current directoryD:\Folder\subFolder>cd ,D:\Folder\subFolder [XXX]cd without any parameters is equivalent to pwd on U...

## Geting error 10013 while creating a socket on loopback IP 127.0.0.1, and general error while pinging 127.0.0.1

I recently started having an annoying symptom.On my system running Windows 10, I can not use the loopback IP 127.0.0.1 to establish a socket, I get a 10013 error code. If I use the IP address assigned by DHCP to the same system, the socket can be established fine.Further testing shows I can not ping 127.0.0.1, either. It will report a "general failure", as below:Pinging 127.0.0.1 with 32 bytes of data:General failure.General failure.General failure.General failure.The system is a Hyper-V VM running 32bit Windows 10 Enterprise (version 1607 build 14393.693) as a guest OS.I ...

## Open Cygwin at a specific folder

How can I create a Cygwin shortcut that will open Cygwin at a specific folder? This would obviate having to typecd /cygdrive/c/Users/Tom/Desktop/each time I launch Cygwin. When you install Cygwin (or if you’ve already installed it, download it again and start setup again to run an update), make sure that you select the chere package under the "Shells" category.After Cygwin is launched, open up a Cygwin terminal (as an administrator) and type the command: chere -i -t mintty.Now you should have "Bash Prompt Here" in the Windows right-click context menu.(mintty is Cygwin's ...

## How do I uninstall a Windows service if the files do not exist anymore?

How do I uninstall a .NET Windows Service, if the service files does not exists anymore?I installed a .NET Windows Service using InstallUtil. I have since deleted the files but forgot to run InstallUtil /ufirst. So the service is still listed in the Services MMC.Do I have to go into the registry? Or is there a better way? You have at least three options. I have presented them in order of usage preference.Method 1 - You can use the SC tool (Sc.exe) included in the Resource Kit. (included with Windows 7/8)Open a Command Prompt and entersc delete <service-name>Tool h...

## In a Emacs + Slime + Clojure + Windows setup, failure to load clojure-auto

I followed this very helpful guide on getting this development environment set up. When running the emacs.bat I get the following error in Emacs: File error: Cannot open load file, clojure-autoUnfortunitely I am completely new to both Clojure and Emacs, so any help in even figuring out where to begin looking would be helpful.Also, as a side note the last step in the guide is: Start up Emacs using the emacs.bat file. Then, just type "M-x slime", and the REPL will come up, and you're on your way. According to the Emacs documentation, M-x would be Meta key + x. It's unclear ...

## How to open gnuplot from mobaxterm?

I'm not sure how to open Gnuplot from MobaXterm. I've been trying many different commands but they all don't work. When I try, I get the same error. -bash: gnuplot: command not foundI'm curious if I downloaded Gnuplot to the wrong part of the computer or if I'm not getting the command right? I'm trying to write a program in shell script that opens Gnuplot on it's own and plots data through the shell script. Any help is appreciated! mobaxterm is not a linux server. So you cant install packages into it normally.you must download plugins if you can find the plugin you are ...

## Continuous ping with hourly reports

In cmd, is there any way to create a normal continuous ping and automatically save the ping result every one hour? Actually i want to use the normal ping result to be analyzed in excel sheet. Most of the tools out there will summarize the report, thus i cant get the average, iqr, median, 70th and 90th percentile of the ping. Yes, of course. Create a batch file which will split the ping output line with delimiters Space, Equal, Less, and use 7th token if 8th token is "TTL".Then schedule the batch to run once in an hour.SET IP=google.comSET RESPONSE=timeoutFOR /F "tokens=...

## Python 3.x in Cygwin?

I have the python package in Cygwin on Windows 7. However, typingpython -VreturnsPython 2.6.8This is a pretty low version of Python... I could use Python 3.x (whatever version is newest, preferably). I've seen some people say you have to download a .zip or .tar manually to get it (similar to this question). My questions are as follows (please note this is NOT a duplicate of the linked question):Can I get Python 3.x somehow using the Cygwin package manager?Can/should I get rid of Python 2.6 if I manage to get Python 3.x running? None of my code runs on anything specific to P...

## IIS6: Create/install SSL self-signed cert from command line

I want to automate the setup of SSL for a website in IIS6. It appears selfSSL and certutil can be used to do this but certificates are new to me and I'm unsure how to put them together.From what I understand I need to:create a certificateassign the certificate to the websiteadd a secure (SSL/443) binding to the websiteI would also like to avoid creating a new certificate if the site cert has already been created. That way I don't end up with a bunch of redudant certs. I would suggest you look at the IIS 6 Resource Kit: http://www.microsoft.com/download/en/details.aspx?...

## How to install mongoDB on windows?

I am trying to test out mongoDB and see if it is anything for me. I downloaded the 32bit windows version, but have no idea on how to continue from now on.I normally use the WAMP services for developing on my local computer. Can i run mongoDB on Wamp?However, what's the best (easiest!) way to make it work on windows?Thanks! It's not like WAMP. You need to start mongoDB database with a command after directory has been created C:/database_mongomongod --dbpath=C:/database_mongo/you can then connect to mongodb using commands. [XXX]Mongo Installation Process in WindowsAre y...

Page 1 of 95  |  Show More Pages:  Top Prev Next Last