I am currently using this code to remove lines of text from a text file in a batch file and it works fine.
net use M: "\\Goldfinch\data"
move DEB304INV.txt L:
move DEB304FIN.txt L:
move DEB304REM.txt L:
more +29 "L:\DEB304REM.txt" > "L:\DEBTORS304REM.txt"
more +29 "L:\DEB304INV.txt" > "L:\DEBTORS304INV.txt"
ren DEB304FIN.txt DEBTORS304FIN.txt
net use M: /delete /y
I am moving all my batch files across to PowerShell, can you tell how to remove the lines out of the text file using PowerShell.
Recently we ran in to an issue while running some SQL jobs where we were trying to process the cubes. We got an error saying failure stating 'NT SERVICE\SQLSERVERAGENT does not have access to Analysis Services. So this is a way to automate that wit…
There are times when we need to generate a report on the inbox rules, where users have set up forwarding externally in their mailbox. In this article, I will be sharing a script I wrote to generate the report in CSV format.
Viewers will learn how to properly install Eclipse with the necessary JDK, and will take a look at an introductory Java program.
Download Eclipse installation zip file:
Extract files from zip file:
Download and install JDK 8:
Open Eclipse and …