Problem: When you save webpages or favorites, you can inadvertently get files that are longer than MAX_PATH.
Objective: find files that are longer than 255 characters
Step 1) get a list of all files dir c:\ /s /b > files.txt
Step 2) Wanted, a script to possibly select all lines longer than MAX_PATH (255) from a file
Don't think this sort of thing will work well when the file is 150,000 lines long
var lineTerminator = "\r\n";
var str = UltraEdit.activeDocument.selection;
var resultArr = new Array();
resultArr = str.split(lineTerminator);
IS this the way you would parse the file, line by line, put this in a loop
UltraEdit.activeDocument.gotoLine(1,0);
selectLine
get line length
if line length > 255 write to output window?
Objective: find files that are longer than 255 characters
Step 1) get a list of all files dir c:\ /s /b > files.txt
Step 2) Wanted, a script to possibly select all lines longer than MAX_PATH (255) from a file
Don't think this sort of thing will work well when the file is 150,000 lines long
var lineTerminator = "\r\n";
var str = UltraEdit.activeDocument.selection;
var resultArr = new Array();
resultArr = str.split(lineTerminator);
IS this the way you would parse the file, line by line, put this in a loop
UltraEdit.activeDocument.gotoLine(1,0);
selectLine
get line length
if line length > 255 write to output window?