
Continue Editing Sequentially with Files in EmEditor - Tips & Tricks

Continue Editing Sequentially with Files in EmEditor - Tips & Tricks
July 13, 2010 at 6:04 pm #8742
Keymaster
This is an example of the macro that opens the next .txt file in the same folder as the opened file.
// This macro opens the next ".txt" file in the current folder.
//
sFolder = document.Path;
if(sFolder != ""){
fso = new ActiveXObject("Scripting.FileSystemObject");
f = fso.GetFolder(sFolder);
fc = new Enumerator(f.files);
sItem = "";
for (; !fc.atEnd(); fc.moveNext()) {
if(fc.item().name == document.Name) {
for(fc.moveNext(); !fc.atEnd(); fc.moveNext()) {
n = fc.item().name.lastIndexOf(".");
if(n != -1){
if(fc.item().name.slice(n) == ".txt"){
sPath = sFolder + "" + fc.item().name;
try {
editor.OpenFile(sPath);
catch(e){
break;
break;
Also read:
- [New] The Top 8 Multiparty Android Conferencing Apps for 2024
- [Updated] Cutting-Edge Conversion Tips AVI to GIF Using Filmora for Windows/Mac Users for 2024
- [Updated] Essential ASMR Channel Discoveries
- [Updated] Replay Rare Relationship Recaps
- [Updated] Superior Storyteller's Sanctuary
- 迅速修正方法:如何在Windows電腦中克服D槽存取被限制的困境
- Compreender a Solução De Backup Da AOMEI: Artigos Detalhados, Guias Facilitadores E Promoções Agora!
- Nokia 7.1 Phone Analysis - Stunning Display & Photography at an Exceptional Value
- Récupération Efficace Des Fichiers Perdus Ou Supprimés Sous Windows 11 : Guide Facile Et Pratique
- Speichereinrichtung Wiederaufbau - Tipps Zur Wiedererlangung Unformatierter Festplattendaten
- Title: Continue Editing Sequentially with Files in EmEditor - Tips & Tricks
- Author: Larry
- Created at : 2024-11-23 23:39:38
- Updated at : 2024-11-30 16:18:14
- Link: https://win-bits.techidaily.com/continue-editing-sequentially-with-files-in-emeditor-tips-and-tricks/
- License: This work is licensed under CC BY-NC-SA 4.0.