New
#1
Event triggered task
I'm trying to evoke a certain script once an event occurs, using the Scheduled Tasks in W7 x64 with event triggering. The script copies a certain file from the USB stick to the HDD.
To be precise, the script should run upon specific USB stick is plugged in.
So far i only see the DriverFrameworks-UserMode events in the event viewer where the precise ID of the USB stick can be seen (<UMDFHostDeviceRequest instance="<str>" ... >)
What I also need is to see what drive letter is assigned upon "mount" operation.
I should be able to read somewhere what drive letter is assigned and perform a copy operation such as (e.g. using a .bat script):Can this be done?Code:xcopy <drive_letter>:\file.txt C:\some_dir\
I know autorun is ignored with win7 so that isn't an option.
Perhaps there's a better method..? Also i'd like to use only availlable tools without installing additional automation software.
If possible i'd like to avoid having to define a fixed drive letter assignment.
Thanks in advance