I wanted to call from batch file powershell script that required administrative privileges.I needed to check, if it was started as Administrator and also set current directory where the batch is located.Thanks to couple of stackoverflow questions I've got this batch@echo offpushd %~dp0 &:: @http://stackoverflow.com/q... check_Permissions:processpo... &:: TODO the script to call@pausegoto end:check_Permissions @rem ......
In our PowerShell scripts for different folder it's required to delete if exist and create empty folder. To avoid to repeat folder name in three commands I've created a functionfunction DeleteIfExistsAndCreateEmpt... ){ if ( Test-Path $dir ) { Remove-Item -Recurse -Force $dir } New-Item -ItemType Directory -Force -Path $dir}I've also used this function in answer for SuperUser question How can I copy a directory, overwriting its contents if it exists using Powershell ......
I haven't used Pocket on IPad for the last 2 years and was shocked that the ability to rename articles is still missing. It was available in Read It Later and was one of the biggest issues after Pocket forcibly replaced it.Four years later they acknowledged that it is one of the top requests but nothing is currently planned. It's just ridiculous. Previously I've already wrote about problems with Pocket software ......
I needed to read CSV files with columns, containing strings in double quotes. The problem was that there were new lines within the column. Fortunately I found the article that reads the strings with multiple lines http://www.blackbeltcoder.c... article that I considered ,but haven't used ishttp://blogs.msdn.com/b/e... ......
I wanted to implement rich text editor in ASP.Net Web Form. I found that Tiny MCE editor is very popular and selected it.I've followed the article http://blog.tentaclesoftwar... and it was enough to make it workingAnother article, that I read was http://www.aspsnippets.com/... ......