I'd like to remove the last character off a large file. The restrictions are that:
- the file has to be modified in-situ, without using the disk space required for a similar second file
- it's a windows machine
- I cannot copy any compiled code onto the machine so I cannot create a small c# program of c++ program to manipulate the file
- this also means any non-native scripting is not available, like python.
As far as I know, this limits me to bat, VB (or JScript) but it does not look like there is a viable option in these. VB requires a TextStream to be created from a systemfile object, but then this stream I believe must be saved elsewhere, using diskspace.
Is there a way to do this simply?