windows-xp

Search for unicode text inside Windows XP

假如想象 提交于 2020-02-04 08:08:33
问题 Is there a way of searching for unicode characters inside a text file under Windows XP? For example suppose I wish to find text documents with the euro symbol. Although the standard XP search allows me to search for the euro symbol it does not produce any matches when I know they should be at least a few. Wingrep has the same issue. Is there any simple software/setting the I have missed? 回答1: The input encoding of the search field (in Windows XP, UTF-16) may not match the encoding of the text

Batch Script - Count instances of a character in a file

痴心易碎 提交于 2020-02-02 11:37:05
问题 Using a batch script (.bat file) in windows xp, how would I go about reading a text file and finding how many instances of a character exists? For example, I have a string with the following: ""OIJEFJ"JOIEJKAJF"""LKAJFKLJEIJ""JKLFJALKJF"LKJLKFA""""LKJKLFJLKADJF I want it to count how many " there are in the file and return the count. 回答1: Let's start counting the characters in a line. First the slow and clear method: set i=-1 set n=0 :nextChar set /A i+=1 set c=!theLine:~%i%,1! if "!c!" == ""

Simulating an Active Directory Login in Dev/Test Environment

99封情书 提交于 2020-01-31 03:58:07
问题 Currently building a WPF app that will run in an environment where the user logs into Windows PC which is on a domain (DC). The app will ask the user to enter their login and password again when it starts up, and the login/password will be verified against Active Directory (forgive me if my terminology is not correct here). The login is all-or-nothing; if their password is correct, there is no (current) concern with retrieving groups, rights or anything of that nature. The development

Best .net framework version to work with Windows xp,7,8 without installing or updating it separately

核能气质少年 提交于 2020-01-30 08:10:04
问题 I am going deploy a Windows Form application developed in C# using Visual Studio 2012. I do not want the user to download or update .net framework version. So what is the best .net framework version that most of the windows versions come with pre-installed and enabled ? (Preferably Windows xp,7,8) 回答1: The most commonly installed .Net version is .Net 2, However WinXP does not have a default .Net framework installed From Wikipedia: http://en.wikipedia.org/wiki/.NET_Framework .NET Framework 1.1

Best .net framework version to work with Windows xp,7,8 without installing or updating it separately

老子叫甜甜 提交于 2020-01-30 08:09:14
问题 I am going deploy a Windows Form application developed in C# using Visual Studio 2012. I do not want the user to download or update .net framework version. So what is the best .net framework version that most of the windows versions come with pre-installed and enabled ? (Preferably Windows xp,7,8) 回答1: The most commonly installed .Net version is .Net 2, However WinXP does not have a default .Net framework installed From Wikipedia: http://en.wikipedia.org/wiki/.NET_Framework .NET Framework 1.1

Best .net framework version to work with Windows xp,7,8 without installing or updating it separately

霸气de小男生 提交于 2020-01-30 08:09:06
问题 I am going deploy a Windows Form application developed in C# using Visual Studio 2012. I do not want the user to download or update .net framework version. So what is the best .net framework version that most of the windows versions come with pre-installed and enabled ? (Preferably Windows xp,7,8) 回答1: The most commonly installed .Net version is .Net 2, However WinXP does not have a default .Net framework installed From Wikipedia: http://en.wikipedia.org/wiki/.NET_Framework .NET Framework 1.1

Change printer default paper size

a 夏天 提交于 2020-01-29 02:32:20
问题 I have several custom paper sizes defined on a printer(the printer is set as default). I need to be able to select one of these formats as the default one. A programmatic(C#) solution would be ideal, but a command line one would be ok too. Right now, I am able to get the list of paper sizes(name/dimensions) defined on the printer, and I can find out which one is the default. In order to select another format as default, the only solution I have so far is by changing the dmPaperSize field on

Change printer default paper size

五迷三道 提交于 2020-01-29 02:32:05
问题 I have several custom paper sizes defined on a printer(the printer is set as default). I need to be able to select one of these formats as the default one. A programmatic(C#) solution would be ideal, but a command line one would be ok too. Right now, I am able to get the list of paper sizes(name/dimensions) defined on the printer, and I can find out which one is the default. In order to select another format as default, the only solution I have so far is by changing the dmPaperSize field on

C# window xp current user when using run as

半世苍凉 提交于 2020-01-26 03:21:07
问题 Is there any way to get the current user who used the run as command to run my applcation on windows xp? I have an application that must be run as an administrator but I need to be able to tell the user who started the application for putting short cuts on their desktop. I have tried environment.getcurrentuser() and even doing a direct called to the windows api but unfortunately those only tell me the owner of the thread and not the currently logged in user. 回答1: The work around that I used

What is the best SIMPLE replacement for VS Setup-project Installer for WinXP + WPF + .NET 4.0? [closed]

好久不见. 提交于 2020-01-24 12:43:07
问题 As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance. Closed 8 years ago . I'm having troubles installing my WPF application on Windows XP (required to be updated with SP3 and .NET 4.0 preinstalled). My