I've got a htm and a bat in the same folder. An exe is copied to the folder.
The htm has two links: One to the exe and one to the bat.
The exe creates two txt files. The bat does a litle work on them and then adds them to together.
I'd like to be able to put this folder anyway. ...(1)
Problem: bat file runs but on referencing the txt files in name only results in not found unless the folder is in a fixed location and the bat uses absolute paths.
In the bat %0 gives me the filespec. What I want is the filespec stripped of the filename so that I can use cd allowing the bat to 'pick up' the txt files.
OR another method to achieve (1)
Cheers
The htm has two links: One to the exe and one to the bat.
The exe creates two txt files. The bat does a litle work on them and then adds them to together.
I'd like to be able to put this folder anyway. ...(1)
Problem: bat file runs but on referencing the txt files in name only results in not found unless the folder is in a fixed location and the bat uses absolute paths.
In the bat %0 gives me the filespec. What I want is the filespec stripped of the filename so that I can use cd allowing the bat to 'pick up' the txt files.
OR another method to achieve (1)
Cheers