Posts by MeuChapeu • 5,875 points
107 posts
-
5
votes1
answer355
viewsQ: How to check if there is an already installed Source
I have a C# program that checks if there is a source already installed or not, but it is not working properly: I’m trying with the following code if (File.Exists(@"C:\Windwos\Fonts\Agency FB"))…
-
0
votes2
answers4410
viewsA: run script with admin permission
Searching the net I found a solution: using the command Get-Credential it is possible to do the same thing. assign credentials to a variable: $credential = Get-Credendial contoso\admin; and in the…
-
2
votes2
answers4410
viewsQ: run script with admin permission
I have the following code snippet: foreach($File in $(Get-ChildItem -Path $FromPath)){ $ObjFolder.CopyHere($File.fullname, $CopyOptions); } it copies the files to the windows folder, however users…
-
3
votes2
answers243
viewsA: Regex between words
You can use the following expression ^(public|private)((?!Enum).)*$. I used a regular expression tester online Click here, paste the expression there and you can test.…
-
1
votes1
answer176
views -
2
votes1
answer732
viewsQ: Get font name in . bat
I’m using the script below to install fonts in Windows, but I wonder if there is a way to get the name of face source. For example, the source file name is BebasNeue.otf, but the name of her face is…
-
1
votes1
answer335
viewsQ: How to paint a cell from a Datagrid?
See the code in How to change the color of a Datagrid line in C#? He’s painting the whole line, as far as that’s concerned, what happens and that at the time I give one scroll the painted line is…