Open text file with certain application depending on size

Posted:
23 June 2010, 16:54
by MicketsBR
Hello,
I use PSPad for editing large files (BAT, HTML, TXT, etc.), specially those that have lots of lines. But for smaller files, even BAT or HTML, I don't really want to wait for PSPad to load and would rather open them with a smaller application that loads faster.
Is there a way to have LiberKey open the file with a different application depending on the file size?
Thanks,
Mickets
Re: Open text file with certain application depending on siz

Posted:
28 June 2010, 10:03
by Dji
You would be able to do it using batch commands or VB scripts.
Apparently, this is really easy to to it using batch commands by using the "~z" parameter modifier:
http://www.microsoft.com/resources/docu ... x?mfr=trueBut... unfortunately I was not able to validate it under windows XP, I got an error "[blahblah] unexpected"

Another quite easy way by using VB scripts which will run one or the other text editor depending on its size :
http://www.devguru.com/technologies/vbs ... /file.html
Re: Open text file with certain application depending on siz

Posted:
18 November 2010, 14:10
by MicketsBR
I did it exactly like that, and it works fine.
I don't have the batch file with me, but I can post it here later on if you're interested.