love2mao
May 24th, 2004, 11:14 AM
Hi gurus,
I have this question: I scheduled a task to call a .bat file.
I want to get the path of this .bat in the file itself. Of course,
the location of this .bat file changes.
I've thought I can use "CD" to get it, and I can so this if I run
the .bat from its location, however, when the task scheduler calls
it, "CD" returns "c:\WINNT\system32". Just no idea how to go
ahead
:sick:
I have this question: I scheduled a task to call a .bat file.
I want to get the path of this .bat in the file itself. Of course,
the location of this .bat file changes.
I've thought I can use "CD" to get it, and I can so this if I run
the .bat from its location, however, when the task scheduler calls
it, "CD" returns "c:\WINNT\system32". Just no idea how to go
ahead
:sick: