autorun

Autorunning program from CD or USB on Win7/8

社会主义新天地 提交于 2019-12-06 02:49:11
问题 I work for an IT shop that sees some computers come in with rather nasty viruses. We are working an autorun script that will run a malware killing tool (RKill) when we insert a USB or CD (preferably USB.) We want to run the tool as soon as the USB or CD is inserted without having UAC popup, ideally anyway. Our second choice is to have it open the Autorun options, even on PCs that have been locked down a la FBI virus. We have autorun.inf, a .bat that calls a .exe, and the .exe for the tool we

How do I Automate Keeping my TortoiseSVN Project Up-to-date?

天涯浪子 提交于 2019-12-04 14:28:51
I am using TortoiseSVN for my Subversion repository held on a USB drive. When I move from one PC to another, is there a way to automatically identify that files are out of date (without using the Check for Modifications menu). It would be nice just to be able to see that the folder on my hard drive did not match that of the repository, rather than seeing the green tick. Try creating a file called "autorun.inf" in the root directory of your USB key. Then fill it with the following lines: [autorun] open=CheckForMods.bat Then create a CheckForMods.bat batch file in the root directory that does an

Programmatically run at startup on Linux?

走远了吗. 提交于 2019-12-04 04:43:45
问题 How do I programmatically set an executable on Linux to run when the user logs in? Basically, the equivalent of the HKCU\Software\Microsoft\Windows\CurrentVersion\Run registry key in Windows. 回答1: For gnome on Linux, place a .desktop file referring to your application in ~/config/autostart/, the format is fairly simple: [Desktop Entry] Type=Application Exec=foo Hidden=false NoDisplay=false X-GNOME-Autostart-enabled=true Name=foo and you will have to set the exec bit for this file (chmod +x)

Autorun when USB stick is inserted

邮差的信 提交于 2019-12-02 04:06:41
问题 I'm trying to prompt users to run my installer, whenever they plug in my USB device. I'd like this to work on all (most?) Windows OSes. I have an autorun.inf file in the root dir of my USB key with these contents: [Autorun] ShellExecute=setup.exe Icon=setup.exe UseAutoplay=1 It doesn't seem to do very much at all. Well... it does change the icon properly, but nothing gets executed and the user doesn't get any prompts. I've tried it on both Windows 7 and Windows Server 2003. Any ideas? 回答1:

Autorun removable drive

大城市里の小女人 提交于 2019-12-01 02:00:02
Autorun was disabled in Windows. I am looking for an alternative. I got this AutoIt script : $DBT_DEVICEARRIVAL = "0x00008000" $WM_DEVICECHANGE = 0x0219 GUICreate("") GUIRegisterMsg($WM_DEVICECHANGE , "MyFunc") Func MyFunc($hWndGUI, $MsgID, $WParam, $LParam) If $WParam == $DBT_DEVICEARRIVAL Then MsgBox(4096, "Info", "My Drive has been Inserted, Backup My Files!") EndIf EndFunc While 1 $GuiMsg = GUIGetMsg() WEnd Soon as plugged in, the message box appeared. Now, to run a file I replaced MsgBox(4096, "Info", "My Drive has been Inserted, Backup My Files!") by Run ("F:\path\to\my\file.cmd") But

How to use autorun in Windows 7 from a Flash drive to open a webpage?

狂风中的少年 提交于 2019-11-30 18:49:56
问题 I've been trying to come up with a way to autorun a series of HTML pages that are hosted on a USB Flash Drive. These are all static pages, and are all linked to index.html in my flash drive's root. I tried setting up an autorun.inf file like this: [autorun] open=index.html I have also tried this: [autorun] shellexecute=index.html And I have tried this: [autorun] open=wscript.exe autorun.vbs where autorun.vbs looks like this: Call WScript.CreateObject("WScript.Shell").Run("index.html", 1) So

Autorun the Application using C# [closed]

╄→尐↘猪︶ㄣ 提交于 2019-11-30 16:43:13
I want to create an application that's automatically run after booting the machine. Can anyone help me on how can I do it on C#. This is how you add an app to startup: // The path to the key where Windows looks for startup applications RegistryKey rkApp = Registry.CurrentUser.OpenSubKey("SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Run", true); if (!IsStartupItem()) // Add the value in the registry so that the application runs at startup rkApp.SetValue("My app's name", Application.ExecutablePath.ToString()); And to remove it: // The path to the key where Windows looks for startup applications

Autorun the Application using C# [closed]

烈酒焚心 提交于 2019-11-30 16:08:14
问题 It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center. Closed 8 years ago . I want to create an application that's automatically run after booting the machine. Can anyone help me on how can I do it on C#. 回答1: This is how you add an app to startup: // The path to the key where Windows

auto run a bat script in windows 7 at login

一曲冷凌霜 提交于 2019-11-30 08:39:53
I have recently acquired a windows 7 laptop from my late grandmother. I have been using it for work and other things. I decided to create a VM using VirtualBox And now I want to create a user on the (Windows 7 Host) machine so that when I log into that user it autoruns a .bat script to start the VM. To make it clear I only want to run it only if the user "VM" logs in and not my normal user and it would be super awesome if it would autostart in full screen. I have a shortcut on my desktop that executes the command: "C:\Program Files\Oracle\VirtualBox\VirtualBox.exe" --comment "VM" --startvm

How do I automatically run an application on USB attach or CD insert on Mac OS X?

冷暖自知 提交于 2019-11-30 06:01:30
Is there any way to automatically launch an application on USB attach or CD insert on Mac OS X? it's easy on Windows, but I found that AutoRun.Inf does not work on the Mac at all. Sophie Alpert You can't. Autostarting applications is impossible under Mac OS X. The next-best thing, opening the CD folder and showing the installer icon, can be done by using ( AutoOpen version 1.0 ) to make a .dmg which can then be burnt to a CD. Mike Heinz Don't know why you were voted down - this is a common question for Windows programmers looking at Macs. Basically, auto-run is considered a security problem