Can anyone provide a windows command or batch script that will remove the top two rows from a text file?
I'd like to remove the first two lines of a text file using findstr. I can't use the "more +2 file.txt > newfile.txt" trick described here because i'm calling this via xp_cmdshell and that doesn't seem to work (process often hangs and creates a permanently locked file I can't delete).
I've heard that findstr can use regular expressions to find something like this, and i've seen some attempts using a bat file. I'm open to either one of these possibilities but haven't found a working solution yet.