Home > database >  I want U disk access to a computer has a like computer boot prompt start time how many seconds a pic
I want U disk access to a computer has a like computer boot prompt start time how many seconds a pic

Time:09-18

I want U disk access to a computer has a like computer boot prompt start time how many seconds a picture, do not know how, which eldest brother help me write a ChongXie! QQ: 553774521, 13355947981

CodePudding user response:

U disk access to the computer, let the specified image running on the computer in the bottom right hand corner disappear after a few seconds to realize? Each master!

CodePudding user response:

Very simple, in other judgment WM_DEVMODECHANGE events

CodePudding user response:

reference 1st floor dsxf2005 response:
U disk access to the computer, let the specified image to run on the computer at the bottom right disappear after a few seconds to achieve so? Each master!


Need to handle insert U disk to run automatically after an application problem, by far the most computer disable this feature

In the lower right corner shows a matter of time is better, just put a window in the lower right corner, does not display the title

CodePudding user response:

is a simple thing in the world a lot, not or not! Don't laugh, for example, QQ: 553774521, 13355947981

CodePudding user response:

1 baidu AUTORUN. INI practice

2 don't direct execution in INI EXE, can be intercepted, FLASH, and then call you in the FLASH project EXE

So as long as the insert U disk will automatically play your FLASH and EXE, the premise is the operating system opens the automatic playback function

CodePudding user response:

VBS can be realized, will be content to notepad, suffix for. VBS double click, and then inserted U disk
 On Error Resume Next 
Const Target_Folder="C: \ USB"

Call the Main ()

Sub Main ()
On the Error Resume Next
Const Device_Arrival=2
Const Device_Removal=3
Const strComputer=". "
Dim objWMIService colMonitoredEvents, objLatestEvent

The Set objWMIService=GetObject (" winmgmts: "& amp; "{impersonationLevel=impersonate}! \ \ "& amp; StrComputer & amp; "/root/cimv2")
The Set colMonitoredEvents=objWMIService. _
ExecNotificationQuery (" Select * from Win32_VolumeChangeEvent ")
Do
The Set objLatestEvent=colMonitoredEvents. NextEvent
The Select Case objLatestEvent. EventType
Case Device_Arrival
Msgbox objLatestEvent. DriveName
End the Select
Loop
End Sub
  • Related