windows-8.1

How to retrieve Ethernet adapter name in Windows 8.1 batch script

喜你入骨 提交于 2020-01-06 14:10:50
问题 I'm looking to pull the Ethernet adapter name out of ipconfig to use in a batch script which will create a static ip to that adapter name using netsh. Ethernet adapter Ethernet0: Connection-specific DNS Suffix . : foo.bar.com IPv4 Address. . . . . . . . . . . : 10.0.0.123 Subnet Mask . . . . . . . . . . . : 255.255.255.0 Default Gateway . . . . . . . . . : 10.0.0.456 What I am trying to do is pull out Ethernet0 and use that in the following netsh command (net_city and net_lab are inputted by

Cannot load music file

柔情痞子 提交于 2020-01-06 10:18:31
问题 I put the music(mp3) file in the music folder and created a Song song; object in the game class. Then I did song = Content.Load<Song>("music file name here") in the ContentLoad method and did MediaPlayer.Play(song) . But it gives me an error saying: Could not load music asset I tried making the "Copy to Output Directory" to "Copy always". But this also didn't solve the problem. I heared about monogame not having a content pipe line, but I don't understand what it is. Can anyone explain what I

How to get the default audio device?

扶醉桌前 提交于 2020-01-06 08:14:13
问题 I'm using a 3-rd party DLL which can enumerate the audio devices (providing name and guid-id) and set an audio device to the default one (by the id). How can I get the current audio device (which is used by OS)? I need either name or device id. This question seems to have no useful answers. This one as well. 回答1: You can use DirectShow for this. private IBaseFilter CreateFilter(Guid category, string name) { object source = null; Guid guid = typeof(IBaseFilter).GUID; foreach (DsDevice device

How to get the default audio device?

拥有回忆 提交于 2020-01-06 08:14:11
问题 I'm using a 3-rd party DLL which can enumerate the audio devices (providing name and guid-id) and set an audio device to the default one (by the id). How can I get the current audio device (which is used by OS)? I need either name or device id. This question seems to have no useful answers. This one as well. 回答1: You can use DirectShow for this. private IBaseFilter CreateFilter(Guid category, string name) { object source = null; Guid guid = typeof(IBaseFilter).GUID; foreach (DsDevice device

Vim 7.4 on Windows 8.1 Creates Program and Files Folders Every Time I Open a File

牧云@^-^@ 提交于 2020-01-05 07:31:13
问题 When I open a file from Windows Explorer using right-click -> Edit with Vim, Vim creates a "Program" folder on the root, and a "Files" folder in the directory of the file I've opened. The Files folder includes Vim/vimfiles/doc. There are no files anywhere, just the directory tree. This also happens when I run Vim without a file name as an argument. A DOS Box flashes just before Vim opens, but it goes away too fast for me to read what it's saying. I've used Vim for years and have never seen

SQL Server 2016 installation-offline installation of Microsoft R Open and Microsoft R server

旧街凉风 提交于 2020-01-05 05:49:05
问题 I was trying to install SQL Server 2016 enterprise core edition on my win8, however, when I was in the last few steps, on the Offline Installation of Microsoft R Open and Microsoft R server screen, it shows "Setup was unable to contact the download server" and we need to give an install path like follows: However, I have downloaded the installation files and put it in the specified folder, the "NEXT" button is still grey and unable to click on. Could someone tell me what to do? Thanks! 回答1:

Error: Could not create SSL/TLS secure channel Windows 8

六眼飞鱼酱① 提交于 2020-01-05 04:15:34
问题 After upgrading to Windows 8, I am having problems with a web service call that was previously working. I've already verified on two Windows 8.1 machines and one Windows 8 machine that the following code fails, but it works without error on Windows 7 and Windows Server 2008 R2. var uriString = "https://secure.unitedmileageplus.com/"; HttpWebRequest request = (HttpWebRequest)WebRequest.Create(uriString); try { using(WebResponse response = request.GetResponse()) { response.Dump(); } } catch

Error Installing Windows 10 development tools for Visual Studio 2015 RC on Windows 8.1

主宰稳场 提交于 2020-01-05 02:28:32
问题 I am running Windows 8.1 and I have installed Visual Studio 2015 Enterprise RC with Blend. I am trying to install the Windows 10 development tools for Visual Studio 2015 RC and getting the following error: ExecuteError: Package (VSSecondaryInstaller_box) failed: Error Message Id: 1603 ErrorMessage: Windows 10 SDK 10.0.10069 : The installer failed. User cancelled installation. Error code: -2147023294 Has anyone else gotten this error and found a solution to successfully install? 回答1: Through a

how to print 2 alerts consecutives WinJS

坚强是说给别人听的谎言 提交于 2020-01-05 01:35:44
问题 I want to print two alerts on my app, one to show an application and after pressing close button on first alert to show the second alert Windows.UI.Popups.MessageDialog("Hello Welcome").showAsync(); Windows.UI.Popups.MessageDialog("Welcome to my app").showAsync(); if I just print an alert, everything works good but on the other scenary (two alerts) the code stops with an error, how to fix that?? 回答1: You can't have multiple MessageDialog s open at the same time. Since the showAsync returns

how to print 2 alerts consecutives WinJS

 ̄綄美尐妖づ 提交于 2020-01-05 01:34:01
问题 I want to print two alerts on my app, one to show an application and after pressing close button on first alert to show the second alert Windows.UI.Popups.MessageDialog("Hello Welcome").showAsync(); Windows.UI.Popups.MessageDialog("Welcome to my app").showAsync(); if I just print an alert, everything works good but on the other scenary (two alerts) the code stops with an error, how to fix that?? 回答1: You can't have multiple MessageDialog s open at the same time. Since the showAsync returns