UPDATE: i decided to stick to the vbs file, and the way I fixed the little issue was to add "objShell.Run("ping -n 1 220.127.116.11"), 0, true" under taskkill. strMyDocs = objShell.SpecialFolders("MyDocuments") set objSLink = objShell.CreateShortcut(strMyDocs & "\Daten.lnk") objSLink.TargetPath = strdriveletter & "\Daten" objSlink.Save ' ---------------------------------------------------------------------------------------------------- ' NOTE: if you want to run something before starting pstart, do it below Lets make a shortcut in "My Documents" to my portable documents folder. Once extracted, please run these files as follows: Double click on RunMe.bat and wait until it finishes, then Double click on the Confirm.bat file.
Rozh hi thanks for help im from kurdistan Kash Thanxxx man ,,u made my day Rodrigo Dfinitely u made my day 2! Looks like it isn't possible anymore. Report ma PC› ree - Feb 12, 2010 at 11:59 PM open command line and write the following del /a:rhs [urdriveletter]:\autorun.inf for example if the virus is on ur pen drive Click here to download HJTsetup.exe Save HJTsetup.exe to your desktop. you can try this out
It won't leave any cmd.exe processes running, and adds a couple other handy features. The message which appears for D: drive is : Can not find script file "D:mma.vbs". I was not able to open my hard drive due to malicious software that was trying to run when I double clicked it.
Members can monitor the statuses of their requests from their account pages. i got a laptop that is a windows xp…after i install the windows installer 3.1 all the drive can not open ..A message of "choose program to open" will come out Rehan Saba contact me 03334964920 Eden this problem is comine whenever i start my pc. Batch File Runas These are all static pages, and are all linked to index.html in my flash drive's root.
A virus/worm, elondon.exe created an autorun.inf file on my USB which I have now deleted. Runas Administrator Command I gone through the simple steps as per ur instructions and my system works fine. Note: I already know about the solution of right-clicking on the file and clicking on Run As Administrator, but this is not an automatic solution. what a lovely solution, well explained thanx a lot for your great help, I could have opened my USB drives without it (using simple folder explore) but I hate when double
you can also create files named Recycle, Recycler, Restore, System etc in all drive to prohibit creation of folders having these names (thoese folders are created by viruses to complete their Runas /user:administrator nice one… hehehe Buzor 10x Bro u r just great don THANK YOU VERY VERY MUCH MAN U SAVED MY PC THANK U PLEASE SEND ME UR SITE WHICH HAS MORE I've lost a flash drive before from not disconnecting it properly...actually killed the DRIVE, not just the data. Mohdsanil Thank you!!!
Fuck u bastard So dont try these codes James works like a charm. just one question, why do you need to terminate explorer? Advanced Bat To Exe thanks...... How To Make A Batch File Run Automatically From A Usb NOTE: The notepad is saved on your C:\ drive as "Export.txt" JSntgRvr, Mar 14, 2007 #2 juiceisnice Thread Starter Joined: Mar 13, 2007 Messages: 24 REGEDIT4 [HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\MountPoints2] [HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\MountPoints2\C] "BaseClass"="Drive" [HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\MountPoints2\D]
can not find script file "C:WINDOWSjargon.vbs". This file is attached to many events of windows explorer including OPEN, REFRESH, etc. Still have the same problem. Abdullatif at first thanks alot friend, but it solved half of the problem, the other half is yahoo messenger still don't work, do you have any idea for that, thanks in Bypass Uac Prompt Batch File
Badhurudheen Hassan Thanx dude, this happened to every comp in my home and even my frends' comp at the same time. share|improve this answer answered Jul 23 '12 at 23:37 Wilson F 4421926 By the way: copied verbatim. ur instructions are amazing… my system is working is fine. It switches to the c: drive so that it isn't holding the flash drive open, uses ping to wait 5 seconds, then runs remove.bat Remove.bat dismounts the flash drive, then delete's
In the Details pane, double click on Turn off Autoplay ,and make sure that it is set to disabled. Batch File To Run Cmd Run the shortcut by double-clicking it and the batch file should run as administrator. type this word eg: d:\> attrib -r -a -s -h autorun.inf 4:then type delete for typing = del autorun.inf if u use flash disk just remove it then connect again.
excezzive Brilliant and impressive solution shared guys. zeom Thanks for the solution dude! Type "regedit" (without quotes) into the Open text box and click OK. Runas Administrator Command Line Without Password It should restore the registry to its original settings.
more stack exchange communities company blog Stack Exchange Inbox Reputation and Badges sign up log in tour help Tour Start here for a quick overview of the site Help Center Detailed Method 1: Adding a Snippet of Code to the Batch File Though there's no native batch code to run a bat file itself as administrator without a helper file, there are This way I can just click there on any save/open dialogue box. Running Trend Micro Antivirus If you are currently running in safe mode, please restart your computer normally before performing the following solution.
Then click on the Scan button. I'm the only User so I'm also the Admin. Unfortunately, you can't do this directly from the batch file it self. This function ensures the work on a standard environment, with standard tools and in the same way in different Windows systems.
Your logs show no sign of malware. many times, that it started to get on my nerves. Method 2: Converting the BAT into EXE file with Admin Manifest added Yes your guess is right. do subscribe to a good antivirus/antimalware package!
I also created the autorun.inf folder on the USB to prevent this virus from doing it again! My problem was that this file was located in c:\ drive & I was unable to delete -even in command line- without the parameters -r & -s (I was trying del thanks kishroe Debo You're the best!!!! When exiting PStart and, therefore, automatically removing the USB drive, first end all the programs that were automatically started.
Right click batch file > Send to > Desktop (create shortcut) Of course you can send the shortcut to where ever you would like. echo shortcut ^> Advanced ^> Running as Administrator echo. Type the following command one by one followed by hitting Enter key: del c:\autorun.* /f /s /q /a del d:\autorun.* /f /s /q /a del e:\autorun.* /f /s /q /a c,