Hello Guys, great Forum!
I have a (i guess) easy question which is pretty hard for me to solve.
I want to use the Batch command "TASKLIST" to save the Tasklist to a USB Drive.
the Problem is:
If I use the command -> tasklist>C:\list.txt it will save the Tasklist to C:\list.txt
but i want to use the Batch on a USB drive, and if the guy puts in the USB drive (He is a little dumb) i want the batchfile to be saved automatically to the USB drive, but i dont know which Letter the USB drive get (i.e. E: or F: or D:)
how can i force the Batchfile on the USB to save the list.txt directly on the USB? Is there any possibility?
I have a (i guess) easy question which is pretty hard for me to solve.
I want to use the Batch command "TASKLIST" to save the Tasklist to a USB Drive.
the Problem is:
If I use the command -> tasklist>C:\list.txt it will save the Tasklist to C:\list.txt
but i want to use the Batch on a USB drive, and if the guy puts in the USB drive (He is a little dumb) i want the batchfile to be saved automatically to the USB drive, but i dont know which Letter the USB drive get (i.e. E: or F: or D:)
how can i force the Batchfile on the USB to save the list.txt directly on the USB? Is there any possibility?

