|
Answer» How do you find out the file name of a BAT file that is running? NOTE: MUST WORK ON WINDOWS 98/2000/XP!what do you MEAN running?
running under windows, dos, where how what???I am running it under Windows.this will be a long involved process maybe if the list of batch files on your computer is extensive but if you are adamant enough, this will work.
it would help if you know what the batch is doing
i go to DOS ...cd\ then you are at the root..(unless you have a partition with another drive)
type and enter
dir *.bat /s/b >allbats
this will give you a text file without the txt extension called allbats that contain the list of all the batch files on your computer
if your text editor or wordprocessor does not let you read the file, rename it RN ALLBATS ALLBATS.TXT then open the file in your text reader (could even use notepad)
print out the list . go to the suspected directory and type and enter the name of the batch file .
try it for each one.
there is a strong possibility it is in your autoexec file if it is running at the OPENING of a session.
it would help the respondents of this forum if you were more specific as to what happens and when it happens
as i said in the beginning , this will work for you but it is clunky. i IMAGINE you want a magic button that you can press to see what is causing the current screen to have been enacted. i do not hink that exists or else we would be ABLE to see the virus that causes much misery to we plain folks. If you made that bat, then add one line with: echo %0 >>name.txt on your bat file. This will append the name of your running bat (without .bat extension) in the "name.txt" file. If you want to see what programs are running, then you have multiple options. One is that specified by franksimari. Tell us if you solved your problem (and how )
|