Tag: Scripts

  • Access denied when creating a folder just deleted

    I have a batch script which remove a folder and re-create it. The command that remove a folder is rd /s/q and the command create folder is mkdir. Recently I see something weird happening, everytime when the folder is deleted and re-created, there is error message Access is denied displayed. However, if I rerun the…

  • Delete blank lines from text file

    This note is for a few quick ways to delete all blank lines from a text file. sed ‘/^$/d’ file > file_new grep -v "^$" file > file_new (This is for Notepad++ users) Select all text (shortcut Ctrl+A) and then click Menu TextFX -> TextFX Edit -> Delete Blank Lines