I've got part of a batch file I'm trying to use to do 2 things, the first is to grab a recursive directory listing of specific files in a folder structure, and the second is to open the resulting text file in a specific text editor. The problem I'm having is the path of the text file isn't being recognized. It's being looked for in the text editor program directory, but I need this to be able to open the text file in whatever directory I've created the file.. Here's what I have so far:
Code: Select all
dir /b /s "CONSTANT_STRING*.tif" > composite.bat
TIMEOUT /T 3
set cmd=start "" /d "D:\utility\TED Notepad 6" "tednpad.exe"
When this runs, for example, from E:\some folder\some sub folder\ it creates composite.bat in that folder just fine, but then when it opens Ted Notepad, it looks for composite.bat in the Ted Notepad program directory, and of course that's not where it is, so it fails.