windows-10

Prompt user to select device (from line)

て烟熏妆下的殇ゞ 提交于 2019-12-01 11:18:17
问题 I'm trying to list the connected adb devices and prompt the user to select a line to deploy an APK to. So far I've tried: for %%i in (adb devices) do ( ECHO %%i ) But that won't work at all. Is there any way to capture the id of each adb device into variables? My goal if possible is to capture each id like: %line1=f2ea3410 From adb listing adb devices : f2ea3410 device f2fa3410 device So I can prompt the user the line (and not the id which is painful to type): @ECHO OFF set /p id="Enter Line:

vbscript to open an excel file in Windows 10 via Task Scheduler

时光总嘲笑我的痴心妄想 提交于 2019-12-01 11:02:23
I have a script file that I'm executing via Task Scheduler that worked fine in Windows 7, and is not working in Windows 10. Here's the code snippet: Dim myxlApplication, myWorkBook Set myxlApplication = CreateObject("Excel.Application") myxlApplication.Visible = False Set myWorkBook = myxlApplication.Workbooks.Open( emlAttach ) myxlApplication.DisplayAlerts = False myWorkBook.Application.Run "Main.Main" myxlApplication.DisplayAlerts = True myxlApplication.Quit Set myxlApplication = Nothing emlAttach is set earlier in the script to the absolute path and filename with extension. When executing

Windows 10 Bluetooth Advertisement API

时间秒杀一切 提交于 2019-12-01 10:13:13
问题 Is it possible to use an AdvertisementPublisher to send a major and minor ID when acting as a beacon, and is it also possible to use an AdvertisementWatcher to send and receive the ID? Cheers 回答1: Yes, do this to send: var manufacturerData = new BluetoothLEManufacturerData(); manufacturerData.CompanyId = 0x004c; byte[] dataArray = new byte[] { // last 2 bytes of Apple's iBeacon 0x02, 0x15, // Proximity UUID 0x44, 0x50, 0x3f, 0x1b, 0xc0, 0x9c, 0x4a, 0xee, 0x97, 0x2f, 0x75, 0x0e, 0x9d, 0x34,

bcrypt loading error in windows 10

前提是你 提交于 2019-12-01 10:09:42
问题 now I am trying to install bcrypt in windows 10, but I got an loading error whenever running webrick server as the following. C:/Ruby22-x64/lib/ruby/gems/2.2.0/gems/bcrypt-3.1.10-x64-mingw32/lib/bcrypt.rb:16:in `require': cannot load such file -- bcrypt_ext (LoadError) I am using rails 4.1.5 and ruby 2.2.3. There was no problem with bcrypt when I was using windows 8.1. The ruby version was 2.1.6 when I was using windows 8.1 How can I solve this bcrypt issue? 回答1: It took me few hours to get

Set “RUNASADMIN” application compatibility flag in Inno Setup

痴心易碎 提交于 2019-12-01 09:56:32
问题 My application was made with Java and it needs Administrator privilege to run on Windows. Using Inno Setup I could change change a registry with the following code and it works just fine for Windows 7, however for Windows 10 and 8, I don't have the same success, since the registry apparently doesn't exist anymore. [Registry] Root: HKCR; Subkey: "SOFTWARE\Microsoft\Windows NT\CurrentVersion\AppCompatFlags\Layers\"; ValueType: String; ValueName: "{app}\AppExecutable.exe"; ValueData: "RUNASADMIN

UWP's 'Add-DevAppPackage' Powershell script checks for a developer licence. This is an issue for Sideloading?

回眸只為那壹抹淺笑 提交于 2019-12-01 09:21:55
I'm developing a LOB (Line-of-Business) UWP project, we're hoping to distribute the app as a .appxbundle file, alongside a .cer and a Powershell script. This is what is generated in the package for you when you generate a bundle from Visual Studio by selecting Project->Store->Create App Packages... The problem I have is that the Powershell script, Add-DevAppPackage.ps1 , has a check for a developer licence in it. Specifically it calls the powershell cmdlet Get-WindowsDeveloperLicense . If this doesn't return anything it sets a variable which eventually calls Show

UWP app on Xbox

半城伤御伤魂 提交于 2019-12-01 09:11:15
During the events and promotions around Windows 10, I always see that the UWP apps can run on all devices from Microsoft family. To confirm that, when I am browsing for UWP apps on my browser and I click to see the source code from an app page, I am able to see the following meta data: <meta name="description" content="Download this app from Microsoft Store for Windows Phone 10, Windows 10, Surface HUB, HoloLens, other Windows devices, Xbox. See screenshots, read the latest customer reviews, and compare ratings. " /> So why I can't see these apps on my Xbox app store? I have read this

Anaconda 3 Spyder appears to be causing internet outages on Windows 10

房东的猫 提交于 2019-12-01 09:07:35
I have a repeatable problem with my laptop (an HP G4 250 that came with windows 10). I can be happily on the Internet, but opening Spyder causes the Internet to immediately die. Now, the system does something rather unusual. I am not disconnected from the router, and the wireless icon still says I am connected and have Internet access. But streams crash, webpages refuse to load and say there is no internet connection, and I can;t even access my router's config page. Closing Spyder fixes the problem. Not instantly, but when Spyder is open, it creates several pythonw.exe network requests (seen

Pin program to start menu using PS in Windows 10

陌路散爱 提交于 2019-12-01 09:02:46
问题 I am trying to pin a program to the start menu in Windows 10 $shell = New-Object -ComObject "Shell.Application" $Folder = $shell.NameSpace("C:\Test") $exe = $Folder.ParseName("notepad.exe") #$exe.Verbs() $ItemVerbs = $exe.Verbs() Foreach($ItemVerb in $ItemVerbs) { If($ItemVerb.Name.Replace("&","") -match "Pin to Start") { $ItemVerb.DoIt() Write-Host "Pin to the Start menu sucessfully.+ ""$ItermVerbTxt"" " -ForegroundColor Green } } After executing this code, i see the success message which

vbscript to open an excel file in Windows 10 via Task Scheduler

自闭症网瘾萝莉.ら 提交于 2019-12-01 08:52:08
问题 I have a script file that I'm executing via Task Scheduler that worked fine in Windows 7, and is not working in Windows 10. Here's the code snippet: Dim myxlApplication, myWorkBook Set myxlApplication = CreateObject("Excel.Application") myxlApplication.Visible = False Set myWorkBook = myxlApplication.Workbooks.Open( emlAttach ) myxlApplication.DisplayAlerts = False myWorkBook.Application.Run "Main.Main" myxlApplication.DisplayAlerts = True myxlApplication.Quit Set myxlApplication = Nothing