AutoHotkey Community

It is currently May 27th, 2012, 9:53 am

All times are UTC [ DST ]




Post new topic Reply to topic  [ 1 post ] 
Author Message
PostPosted: November 15th, 2006, 8:28 am 
Quote:
Image English version (using Google translation service)

Image

Das Windows-Programm USBAgent ist im Rahmen des c't-Artikels Angesteckt (c't 26/2002 S.206) entstanden und dient dazu, beim Anstecken und Abziehen eines USB-Sticks programmgesteuerte Aktionen ausführen zu lassen.

Zum Betrieb muss der USB-Stick eine Datei "usbagent.inf" enthalten, die beispielsweise wie folgt aufgebaut ist:

[usbagent]
ON=start-app.exe
OFF=stop-app.exe

Beim Anstecken wird das Programm "start-app.exe" ausgeführt, beim Abmelden das Programm "stop-app.exe". Beide Programme müssen im Suchpfad enthalten sein, damit USBAgent sie finden und ausführen kann.

Sie können Aufrufoptionen für beide Programme angeben. Dabei sind folgende Platzhalter möglich:

%date%
wird ersetzt durch das aktuelle Datum im Format JJJJMMTT
%basepath%
wird ersetzt durch die Laufwerksangabe des USB-Sticks

Soll ein Programm ausgeführt werden, das auf dem USB-Stick enthalten ist, so muss %basepath% als Pfadangabe benutzt werden, beispielsweise:
ON=%basepath%\start-app.exe

[Home]


Report this post
Top
  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 1 post ] 

All times are UTC [ DST ]


Who is online

Users browsing this forum: No registered users and 4 guests


You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Powered by phpBB® Forum Software © phpBB Group