Kill processes (using Javascript) on a 64-bits machine (Windows Vista, 7, 8, 8.1)

Hi everyone. I have a simple VBScript sample that kills a process by name. It works fine on every OS, X86 and 64 bits :
---------------------------kill process sample----------------------------------------
Set wsh = CreateObject("Wscript.Shell")
wsh.Run "calc.exe",1
Set Processes = GetObject("winmgmts:").InstancesOf("Win32_Process")
For each Process in Processes
Select Case LCase(Process.Name)
Case "calc.exe" 
Process.Terminate(1)
I tried the "for" loop, the "forEach" loop and "switch" in javascript but none of them work like in VBScript.
Could anyone help me converting this script sample to javascript, since VBScript became obsolete and God knows whether it will be available for HTA applications and Windows Script Host files in the near future.
Thanks a lot in advance.

Jvr, you said :
"What you have done is one of the reasons why support for ActiveX is being dropped.  By allowing unsafe controls you have removed the most important security restriction.
I highly recommend that you spend some time learning Windows but not from web sites or from people who are just hackers.
If you are going to alter IE you might as well just use an HTA.  It doesn't reduce security and is much easier to use.
You are trying to do what a lot of new and untrained people try.  You are trying to reinvent Windows but mostly because you do not have fundamental technical training.  Get the training and you will not be led down these pointless paths.
NTVDM is not CMD.EXE.  NTVDM is used to emulate a 16 bit DOS environment. It is not required for NT or for CMD.EXE.  It is disabled by default on all modern versions of Windows.  16 bit applications can be a security issue and
do make managing Windows harder."
One of the best features of IE might be ActiveX technology. I could be wrong, but some controls are still highly used by websites, and a lot of softwares help rely on HHCTRL ActiveX. I don´t see it *currently* being dropped.
Could be in the future, but not only IE uses Activex, a lot of programs make use of them, not to mention popular ones like Word, Excel.
My friend, I use Windows for more than a decade, don´t tell me what I have to learn or not. You´ve got to be kidding because I know a lot but of course I am humble to admit I ´don´t know everything and can at times have doubts, other people can help
just like I could help when someone has a doubt on something I know. Also I dont know why you are talking about hackers. As far as I know they *must* know the OS in order to exploit stuff and run their malicious code, not only know how to exploit general vulnerabilities,
so I bet the real hackers have a lot to teach.
I am not untrained, sorry but you must be high since you are not reading my posts correctly. I said I altered security setting for the *INTRANET ZONE*, not Internet, and also set the "Websites in less privileged zones can navigate to thiz zone" to deny.
And if you are an expert you must know the intranet zone is disabled by default, which is my case, but if you add an IP address or website, then it will be enabled *only* for them. Furthermore an attacker would need to know what is the IP address I added and
would need to bypass the cross site scripting filter and also the setting above that I disabled.
Again, you´ve gotta be high. I never said CMD=NTVDM. NTVDM just emulates a 16 bits program which is Command.com, I said in the other post, didn´t you read?
And you can´t tell if MSHTA, ActiveX and WSH will be totally removed from Windows in the future, it is only a possibility. They are useful. 16 bits apps are not but are still supported on 32-bits Windows. Check out on a 32-bits system, and tell me if
you found some 16-bits apps including C:\windows\system32\command.com.
Hope now you understood what I have written.
cheers.

Similar Messages

  • DOWNLOADED  a copy of Lightroom 6 as free software with my camera but it will not run on my 32 bit machine,windows vista and ther are no download option availble for Adobe.

    How do I get someone from adobe to interact with me on this problem. So far Contact links have not lead to Adobe support person.

    Adobe has been posting a warning about system requirements for Lightroom [6] a while ago. This is from that message:
    'In order to leverage the latest operating system features and technologies, Lightroom 6 will require Mac OS X 10.8 or above, or a 64 bit version of Windows 7, 8 or 8.1. Focusing our work on more modern operating systems and architectures allows us to spend more time adding functionality requested by users, including additional advanced imaging features and improving general application performance.'
    So the only way to work with Lightroom [6] is to upgrade your operating system from 32 to a 64 bit version, like Windows 7 or 8.1
    A 32 bit version also will not be available. Another choice is to use Lightroom [5] in stead.

  • I am using Lightroom 5.7, 64 bit with Windows 7 Professional. For no apparent reason, I now get an error message when I export a photo, say a raw image to a JPG. However, the exported image seems to be OK. But now I notice that my LR directory of folders

    I am using Lightroom 5.7, 64 bit with Windows 7 Professional. For no apparent reason, I now get an error message when I export a photo, say a raw image to a JPG. However, the exported image seems to be OK. But now I notice that my LR directory of folders in Library view does not show images correctly: If there is a folder with sub-folder(s), the folder will indicate 0 images, but the sub-folders show the proper number of images. What happened and is there a fix? I tried uninstalling Lightroom and re-installing, but problem persists.
    Here is a screen shot of the error message:
    Message was edited by: Joseph Costanza, Jr.

    See here for a solution.

  • Want to use Premiere Elements 4 or newer with Windows Vista 64 bit??

    We bought a new pc with Windows Vista 64 bit - but are now having problems using my Photoshop Elements6 and Premiere Elements 4 with our new pc.  it says on the box and on the web - that it is compatible with Vista - so why isn't it working for us?  Do i need to buy something else - and if so what?

    I am not sure completely about Photoshop Elements - but my main issue is with Premiere Elements....i need to find a program that will work so i can work with all my videos.  Trying to find out why it doesn't work or how to get it to work.
    Date: Mon, 8 Jun 2009 21:24:11 -0600
    From: [email protected]
    To: [email protected]
    Subject: want to use Premiere Elements 4 or newer with Windows Vista 64 bit??
    What problems with PSE?
    >

  • Can we connect to oracle 9i using vb6.0 in 64 bit machine.

    Can we connect to oracle 9i using vb6.0 in 64 bit machine.
    Code i have written is
    dim conn as new ADODB.Connection
    conn.open("Provider=MSDAORA.1;password=pw;user id=usname;data source=dbname;Persist Security info=false")
    but it is throwing an error saying
    "Connection not open"
    But the same code is working in vb.net.
    Do we need to install any providers for 64 bit machine?

    I have had no luck doing this in the 64-bit ODAC or otherwise. If anybody succeeds I would love to hear about it. My experience follows for those interested:
    I am trying to migrate some working VB6 code from Windows 2000 Server to 64-bit Windows Server 2003 but can't get the OLEDB connection to Oracle to work.
    In the working code (x86 environment), I am using ADO 2.8 and Microsoft OLEDB Provider for Oracle (MSDAORA). Since the Microsoft OLEDB provider for Oracle is no longer supported or available on Windows Server 2003 x64, I tried to use the 32-bit Oracle OLEDB provider in ODAC 10.2 but may have run into the parsing bug posted on MSDN (http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=159581). Next, I successfully installed the beta 64-bit version of ODAC 10.2, but when I try to open the connection I receive "Error 3706 Provider cannot be found. It may not be properly installed." However, I can successfully TNSPing the data source.
    Windows Server 2003 x64 (not Itanium)
    Oracle Enterprise 9.2
    Microsoft Visual Basic 6
    Microsoft ADO 2.8 (Objects & Recordset references)
    Oracle OLEDB Provider (ODAC 10.2, 64-bit)
    Code Snippet:
    Set m_dbConn = New ADODB.Connection
    With m_dbConn
    .ConnectionString = "Provider=OraOLEDB.Oracle;Data Source=oplprod; User ID=myid; Password=mypwd;"
    .ConnectionTimeout = 10
    .CursorLocation = adUseClient
    .Open
    End With

  • For the last 3 or 4 versions of iTunes, and continuing in 11.05, the site recognizes that I have a 64 bit OS (Windows Vista) and downloads the 64 bit version of setup.

    For the last 3 or 4 versions of iTunes, and continuing in 11.05, the site recognizes that I have a 64 bit OS (Windows Vista) and downloads the 64 bit version of setup. Setup installs iTunes in the 32 bit application directory (Program Files x86) - it's not all that unusual to run a 32 bit app under a 64 bit OS - BUT whenever I connect any of my iPhones, I get an error message that say I cannot use the iPhone because the 64 bit version of iTunes is not installed.  The message then tells me to de-install iTunes and to install the 64 bit version.
    Like I say, the 64 bit Setup version is selected for me, and it runs error-free, but I seem to have no control or ability to force the installation of a 64 bit iTunes app.  And all the iPhones are inoperative with the 32 bit version I have.  I have another PC, which I have held at an earlier iTunes release. Although it's a notebook, it's identical in every other way (OS & installed utilities and apps) to the desktop that has developed the problem, and my iPhones work fine with it, although iTunes on it is at the earlier release, and I have no intention of upgrading that version until I understand and have corrected the problem.
    Any ideas or suggustions?
    Thanks.

    This iPhone cannot be used because the required software is not installed. Run the the iTunes installer to remove iTunes, then install the 64 bit version of iTunes.
    That usually indicates that your Apple Mobile Device Support has not installed. That's also what is being shown by the diagnostics (the driver is there but the application isn't).
    Let's try a standalone Apple Mobile Device Support install. It still might not install, but fingers crossed any error messages will give us a better idea of the underlying cause of why it's not installing under normal conditions.
    Download and save a copy of the iTunesSetup.exe (or iTunes64setup.exe) installer file to your hard drive:
    http://www.apple.com/itunes/download/
    Download and install the free trial version of WinRAR:
    http://www.rarlab.com/
    Right-click the iTunesSetup.exe (or iTunes64setup.exe), and select "Extract to iTunesSetup" (or "Extract to iTunes64Setup"). WinRAR will expand the contents of the file into a folder called "iTunesSetup" (or "iTunes64Setup").
    Go into the folder and doubleclick the AppleMobileDeviceSupport.msi (or AppleMobileDeviceSupport64.msi) to do a standalone AMDS install.
    (If it offers you the choice to remove or repair, choose "Remove", and if the uninstall goes through successfully, see if you can reinstall by doubleclicking the AppleMobileDeviceSupport.msi again.)
    Does it install (or uninstall and then reinstall) properly for you?
    If instead you get an error message during the install (or uninstall), let us know what it says. (Precise text, please.)

  • I set up a playlist in itunes and when i tried to sync it to my iphone i get an error message "itunes could not copy "x" to the iphone "x" because a timeout error occured.  Using itunes 10.5.2.11 and Windows Vista 64

    I set up a playlist in itunes and when I try so sync it to my iphone, I get an error message "itunes could not copy "x" to the iphone "x" because a timeout error occurred.  Using itunes 10.5.2.11 and Windows Vista 64.  Any help?  Thanks in advance!

    I have the same question and the only reply I've found on the forum was "change the USB hub", which HASN'T worked. So I am accepting new suggestions. Tks!

  • Branch process using javascript to call popup

    I am on Windows Vista, Oracle XE and Apex 3.1.0.00.32.
    The branch works when using region based button.
    I wanted to use a "button displayed among this region's items" for a "button" list in the sidebar. I created a button and used a branch based on :REQUEST = 'button_name'. The branch fires but I get an error "Internet Explorer cannot display the webpage."
    HTML header code
    <script language="JavaScript" type="text/javascript">
    function popup(pURL, pwidth, pheight) {
    html_PopUp(pURL,"winLov",pwidth,pheight);
    </script>
    Branch Code
    javascript:popup('f?p=&APP_ID.:10012:&APP_SESSION.:&REQUEST.::10012:P10012_ISS_ID:&P10011_ISS_ID.',500,350);
    Since the code works in the URL redirect on a Button in a region position but not in a Branches redirect to a URL I assume this functionality does not work? Can anyone shed light on this? If it doesn't work I will need to find another solution....
    Thanks,
    Sam
    I did search and found a thread that intimates it should work.
    link:calling javascript on a branch is this possible
    Edited by: slavanaway on Mar 23, 2009 4:14 PM

    Luis,
    I see that I did not put more detail into the issue than the title.
    I am trying to call a popup from a button among region items. The user makes a selection then some custom DDL fires and the popup closes and the calling page is refreshed.
    A button among region items does not have a redirect to URL like a button in a region position. So I made the branch that was conditional on the button. I think I knew that a "branch" is server side. I don't understand why the jvascript URL does not work.
    A button in a region position and a list that redirects to a URL both work. I wanted the list to look like button in a vertical row.
    I now have the functionality working with a list.
    So I am coming to the mountain to get enlightenment. The Branches on a page can not use javascript is my guess and being eternally curious I was wondering why. I hope knowing will help me save time and produce better apps in the future.
    As for the actual behavior. When the Branch for the button amonth the region items fires. I would get the error message and the URL would only show apex flows. I don't have the exact URL as I dis-assembled the list and branches.
    I think the branch goes to the server but either the javascript is not passed or it does not handle the javascript.
    Tx,
    Sam

  • Combo installer keeps installing 64 bit on windows vista

    Is there a 32 bit only installer? every time I try to install an adobe flash update it loads the 64 bit version because I am on 64 bit Windows Vista, since the 64 bit of flash doesnt work on Vista I want to install the 32 bit version of flash but it keeps forcing the 64 bit version and causing problems with flash since the 64 bit doesnt support Vista. So I dont want a combo installer but I want just a 32 bit version where can I find that?

    There is no 32-bit only or 64-bit only installer.  On 64-bit systems it will install both 32-bit and 64-bit players.
    If you don't want to use the 64-bit player, use 32-bit browsers only.

  • HT1923 How to uninstall itunes 32 bit and install itunes 64 bit on windows vista 64

    I installed 32 bit version of Itunes by mistake on a Windows Vista 64 bit computer.  I have lots of items in my Itunes library.  Can I uninstall the 32 bit version and install the 64 bit version without loosing my Itunes library?

    Yes you can without losing your music. Here is a link to a good website that helps people install and / or uninstall iTunes properly. It can keep you from going completely nuts if you are running into any problems trying to install, reinstall or uninstall iTunes! You can find step by step instructions there to help you if you can't remove or install iTunes for any reason or if it got corrupted somehow. It also has other reference links that have helped a lot of people from going completely nuts with iTunes problems: http://HowToUninstalliTunes.com

  • Button on Interactive Report to fire a process using JavaScript

    I have a requirement to trigger a process from a button on an interactive report. One of the report columns has the triggering data allowed to make the process fire. The requirement is that the button says different things based on the value from another column in report.
    My button is an html button that when the process is allowed to run, is enabled and fires a javascript function. When the process is not allowed to run for the row where the button is placed, the button changes text, color and is disabled.
    The switching of the HTML button is working properly. The problem is that I am not able to grab the column value from the report to submit with the onclick() event.
    As best I can tell, there is not unique id tag on the report columns and the best that I am able to do is to apply one class to the button and another class to the column that contains the value that needs to be submitted on my onclick() event.
    I have considered using a link column that does a submit to a URL passing in the desired value but I would lose control of the appearance of my button.
    Does anyone have a suggestion?
    Thanks

    In debugging while clicking on back button for first time, I found that after 'Leave to screen 0' statement debugger goes to double click event of screen 100 and start processing from a statment written immediately after 'Call screen 200' statement.
    Yes, that's right. The processing will be continued from next stamtement after CALL SCREEN 200. But after the PAI will finish it shoud go to NEXT SCREEN which is 0.
    If that doens't work you can try leaving the screen 100 explicitly as well.
       CALL SCREEN 200. 
       LEAVE TO SCREEN 0.  "the processing will terminate screen 100 as well
    Try it out.
    Regards
    Marcin

  • Is it possible following batch processing using javascript...?

    Hi Everyone,
    Is it possible with in javascript following batch processing?
    • Open all PDF files in folder
    • Get which font to be used
    • Get which color plate to be used (i.e.) CMYK or RGB
    • Get page trim size width and Height.
    • Close the file
    • Past in Excel or note pad
    Please help me,  i have do so many files do the same process.
    Thanks in advance.
    -yajiv

    Some time ago I was looking for a way to find out a pdf’s page-count and this was one of the solutions I was presented with (Bridge might offer a better sollution, though):
    #target photoshop
    thePageNumber = getPDFPageCount ( File.openDialog("select pdf"))
    alert (thePageNumber);
    // by jezz, based on something by xbytor i guess;
    function getPDFPageCount(f) {
    f.open ('r');
    var gotCount = false;
    while (! gotCount) {
    next_line = f.readln();
    if ( f.eof ) {alert("Aborting the script\nWe've got to the end of the file without finding a page count");
         f.close();
         exit();
         if (next_line.indexOf ("/N ") > 0 && next_line.slice(0, 9) != "<</Length" && next_line.slice(0, 9) != "[/Separat") {
         var p = next_line.match (/\/N (\d+)\/T/)[1];
         gotCount = true;
         else if (next_line.indexOf ("/Pages") > 0 ) {
    //      alert (next_line);
         var p = parseInt(next_line.substring(next_line.indexOf("/Pages") +6), 10)
         gotCount = true;
    f.close ();
    return Number(p);
    I suppose this approach could be modified to address some of the features you are looking for.
    But the issue might be a fairly complicated one, as a pdf may for example combine many different TrimBox-sizes.
    Have you asked over in the Bridge Scripting Forum, too?

  • HT203164 help! i am using itunes 10.6.1.7 and windows vista 64. itunes will no longer burn cds. i have searched online and tried all i saw that could possibly fix it and it is still not working.

    i have tried:
    reloading itunes
    unchecking 'write'
    removing lower filters in regedit
    ensuring i had the correct 'gear' info in the upper filters in regedit
    removing 'gear' from regedit, system32
    reloading updated version of 'gear'
    cleaning my registery
    deleting itunes
    cleaning registry again
    reloading itunes
    cleaning registry again
    i still cannot burn cd. t i can import and play cds in itunes and i can watch dvds. itunes will just not burn to blank cds, and i have tried sever new blank cds, each is not recognized.
    i do not know what else to do, i have searched the internet and whatever i saw doable i tried.
    when i check the cd drive in itunes i had gotten a 4220 error, cnet advised to download a free error fixer, however, this error fixer gave me and enduser message, so that didn't work.
    the diagnostic for the cd burner read that i had to put in a formatted disc with content so i did and there are the results of that were that it read the cd and that the 4220 errir code was encountered last time there was an attempt to burn.
    and 'could not open cd handler 32. there is a problem with the installation of the drive in windows or the drive contains a copyprotected cd.
    the above is not the case as it also popped up for me to import cd to itunes.
    i tried to copy and past the entire contents here but it would not allow me to paste.
    please help!

    I too have only recently encountered this problem. I have been able to burn disks before but it keeps making all these weird sounds. It might be a hardware problem but the fact that everything else that uses a disk works I doubt it.

  • No Media Button using Palm Desk top 6.2 and Windows Vista

    I installed Palm Desk Top on my XP machine today and noticed a Media Button. I have been using the same version of Palm Desk Top on MY laptop which runs Vista Home Premium. How can I get the Media button on my Vista machine?
    Post relates to: Treo 700p (Verizon)

    This version of Palm Desktop (and Hotsync) are from Access (the company that acquired PalmSource). Palm does not own these applications and may not have legal rights to modiify them any longer.
    Access provided the absolute minimum and did not include any enhancements that Palm made to prior versions of these applications when Palm and PalmSource had better working relations.
    Access is currently primarily interested in getting their competing operating system to market.

  • Syncing/Using iPod on both Mac Leopard and Windows Vista.

    I can't use my iPod on Vista without restoring the firmware to work with windows, and subsequently losing all the songs on it! Is there anyway round this? Basically this means that I cannot transfer my purchases onto a second computer.
    Not good.

    If your iPod is formatted for Mac it won't run natively on a PC because Windows operating systems don't recognize Mac OS-formatted disks (HFS or HFS Plus formats). Mac formatted iPods can only be used on a PC that has a third party helper program such as XPlay or MacDrive installed: How to determine your iPod's disk format
    XPlay has the added functionality to let you copy your songs back to iTunes. So you could copy all of your songs to your PC and then restore the iPod to format it for Windows and add the songs back again. A Windows formatted iPod can be used on both platforms though you would have to carry out any firmware updates on a PC to maintain the formatting. If you are interested you can purchase XPlay at this link: XPlay
    One last thing, If you want to connect and use an iPod on more than one computer or with more than one library you need to change the update preference in the iPod Summary tab to "Manually manage music and videos" and click Apply. The content of iTunes and the iPod are not syncronised in this mode so the two can be different. You can directly access the content of the iPod and play it through iTunes and you can drag and drop whatever you want to the iPod from either library:
    Using iPod with Multiple computers
    Managing content manually on iPod and iPhone
    Syncing Music to iPod
    Something else to be aware of when using an iPod in manual mode is that the "Do Not Disconnect" message will remain on the display until you physically eject the device: Safely Disconnect IPod

Maybe you are looking for

  • Create a zig zag effect in array

    I have a one dimensional array that holds the pixels values for the image. I currently go through it like so: for (int y = 0; y < height-1; y++) {      offset =y*width;      for (int x=0; x < width-1; x++) {           pos = offset + x;           oldP

  • HP Printer Officejet J4680

     I am trying to set up this wireless printer and it is not working.  It let me with USB port and is working that way.   I have installed all the drivers it told me to and tried to go through "Printer and Drivers" and "Add Printers" and "Wireless" but

  • IC Web Inbox and inheritance

    Dear expert In our org. model, we have one main org. unit and several org. units branched beneath (sub-structure). When an incoming email is 'unprocessed', it can be seen by all users assigned under the main org. unit or under the org. units branched

  • Help for the new user

    Apologies for the fairly basic nature of these questions, normally I would just head into an Apple Store and get some assistance. Unfortunately I am in the middle of nowhere without a reliable internet connection and want to back up my Macbook. Any h

  • I need the driver download for a Tungsten T3, I do not have the disc.

    I have tried to find a download for the driver for a Tungsten T3 online but have had no luck.  I don't have the disk.  Can someone give me an idea.  Thanks