windows-10

How to Append to existing file name within a batch command in a for loop

前提是你 提交于 2019-12-11 09:04:48
问题 I am trying to create a batch file for a project, which reads through the files in a directory and runs a command for each file that manipulates a file in some way (from another program). While running the program, it saves each manipulated file to an output folder, with the extension "_updated". How can I do this in my command using a batch file without the extension of the file becoming a part of the file name? for instance, the o/p goes from "Videoa.bin" to "Videoa.bin_updated.bin". How

Batch file runs manually but not through Windows 10 Task Scheduler

柔情痞子 提交于 2019-12-11 09:03:24
问题 I really need help on running a .bat file from the Task Scheduler. It runs when ran from location or when Run is clicked from Task Scheduler. It doesnt run on a schedule when Run only when user is logged on / Run when user is logged on or not The user is my local account is also the admin .bat file is stored in C:\Users\user1\eclipse-workspace\abc\ , and this is what iI have filled in for the Program/Script under Settings in Actions tab. I have unchecked all options under Conditions tab,

WebApp: Cortana loads app, but how can I deep link into the web app with javascript?

可紊 提交于 2019-12-11 08:49:14
问题 For Windows 10: I have started a simple grocery list hosted web application. I went through this quick guide and the app works great. I have added a VCD file, the meta tag on my main page and started on the javascript to handle when Cortana activates the app. The app is registering great with Cortana, I can say: "Grocery show the CostCo list" and Cortana recognizes it and shows the app. The problem is that is always shows the home page. I want to have it show the CostCo page when it is

Error 0x80080209 when signing appx file for Windows UWP

混江龙づ霸主 提交于 2019-12-11 08:45:40
问题 I have build a Windows 10 UWP cordova application, and are now trying to sign it. I already have a certificate that is used elsewhere (to sign .net assemblies) so I thought I would use the same one for this application signing. When I use the signtool.exe, I get the following error.. SignTool Error: An unexpected internal error has occurred. Error information: "Error: SignerSign() failed." (-2146958839/0x80080209) Looking in the event log as suggested here, I see no errors just 2 information

Saving Bitmaps on Windows 10 with GDI scaling active

女生的网名这么多〃 提交于 2019-12-11 07:33:28
问题 I have a MFC application with toolbars (using CMFCToolbar). I create the toolbar bitmap on the fly using bitmaps from files and resources. The DIBs have different color formats. So I create an empty bitmap toolbar image compatible to screen DC. Then I open all the bitmaps and blit the content to the toolbar bitmap (GDI does colorspace conversion and stretching for me). Then I save the bitmap to a 24-bit DIB file. Then I create the toolbar object and load the image. That has worked for ages

Swipe scroll reveals desktop in fullscreen WinForms app

夙愿已清 提交于 2019-12-11 06:58:12
问题 Consider fullscreen C# WinForms app using the approach as described in the WinForms fullscreen question running on Windows 10. When user uses the "swipe" touch gesture for scrolling (e.g. on multiline TextBox) and reaches either of the extrema there is an effect that pulls entire window in scroll direction revealing desktop. This is not desirable for fullscreen app. How can I get rid of the effect? Minimal example: public partial class Form1 : Form { public Form1() { InitializeComponent();

RichEditBox (UWP) ignores font and foreground when setting Rtf text

半世苍凉 提交于 2019-12-11 06:35:38
问题 I'm working with a RichEditBox and I'm having some problems saving and restoring the Rtf text. Here's a sample Rtf text I've exported, as you can see there are the different foreground colors and font families saved correctly (I've manually indented it to make it easier to read) : {\rtf1\fbidis\ansi\ansicpg1252\deff0\nouicompat\deflang1040 {\fonttbl{\f0\fnil\fcharset0 Segoe UI;} {\f1\fnil\fcharset0 Brush Script MT;} {\f2\fnil\fcharset0 Impact;} {\f3\fnil Segoe UI;}} {\colortbl ;\red9\green105

powershell script creates Windows 10 notification and it disappears after popup

风格不统一 提交于 2019-12-11 06:23:57
问题 the following powershell script successfully creates a notification but after the little popup retracts it doesn't show on the Notification Center, any way to leave it in the notification center until the user dismisses it ? param([String]$prodName) [Windows.UI.Notifications.ToastNotificationManager, Windows.UI.Notifications, ContentType = WindowsRuntime] > $null [Windows.UI.Notifications.ToastNotification, Windows.UI.Notifications, ContentType = WindowsRuntime] > $null [Windows.Data.Xml.Dom

Xming Visual Studio Code on Windows 10 Linux Subsystem

血红的双手。 提交于 2019-12-11 06:07:58
问题 What I am trying to do is basically run Visual Studio Code on the Linux subsystem of a Windows 10 Anniversary Update machine. I have installed the code.xxx.deb package using gdebi and solved the few requirements missing. I have Xming installed on Windows, which works (I've tried it with xeyes and firefox). However, that doesn't seem to work when I run DISPLAY=:0 code . The terminal becomes available again without any error message. By running DISPLAY=:0 code --verbose , I get the following:

Simple text cleaning python 3.6 script not giving correct output on executing the script using cmd prompt on windows 10

感情迁移 提交于 2019-12-11 05:49:39
问题 This script runs perfectly when I executed it on spyder but same script isn't giving correct output when I execute the script through command prompt on my Windows 10 machine. I have python 3.6 and anaconda 3.6 on my machine. It's really weird behaviour. I tried to execute the script on an ubuntu system too but didn't get the correct output on it either. clean_data.py import re import argparse def main(data): if data.strip(): data = data.strip() emoji_pattern = re.compile("[" "\U0001F600-