[progress Communities] [progress Openedge Abl] Forum Post: Re: Remove The Last Char Of A...

  • Thread starter Thread starter Brian K. Maher
  • Start date Start date
Status
Not open for further replies.
B

Brian K. Maher

Guest
If you are using a version of Windows which has the fsutil command you can do this using the following.... fsutil file seteof testfile 15 (or whatever) so code to do this would be... file-info:file-name = “whatever”. os-command silent value(“fsutil file seteof “ + file-info:full-pathname + “ “ + string(file-info:file-size – 1). The one potential issue is that fsutil needs to run as administrator. I tested it via a normal command prompt against a file I created and got an access error but running the command with a ‘run as administrator’ command prompt worked. Cheers, Brian

Continue reading...
 
Status
Not open for further replies.
Back
Top