I can only get a few parts of Active Desktop working

Discussion in 'Windows Desktop Systems' started by PC-Dude, Dec 31, 2002.

  1. PC-Dude

    PC-Dude Guest

    I got the run command to open and Solitaire opens fine however any other program i do won't work. Click on it and nothing happens. I must be a total moron I guess :(
     
  2. Bman

    Bman OSNN Veteran Original

    Messages:
    8,799
    Location:
    Ottawa, Ontario
    no no, your not, i did them but every one i make to open a program, it opens sol instead of the program i want! So your not dum!
     
  3. PC-Dude

    PC-Dude Guest

    Damn I was looking forward to this being setup ...oh well guess i'll have to stick with the desktop shortcuts for programs. :eek:
     
  4. PC-Dude

    PC-Dude Guest

    Maybe XP has to be installed on the C drive....I don't know.
     
  5. madmatt

    madmatt Bow Down to the King Political User

    Messages:
    13,312
    Location:
    New York
    No.

    XP does not have to be installed on the C_DRIVE for it to work. However, you need to follow the steps in the tutorial to a tee.

    If you can get SOL to work, then you can get any program to work. You just need to follow it step for step.

    You need to create a NEW shortcut. Place it in the \WINDOWS\ directory. Name the shortcut WITHOUT spaces in its name.

    Then create the .VBS file and place the shortcut name in line three (where specified). Place this file in \WINDOWS\ also.

    Create your A HREF tag with the .VBS file being called from the EXEC() command.
     
  6. PC-Dude

    PC-Dude Guest

    Ok I made a shortcut to MIRC in the windows dir the way the tutorial said, then I created the .vbs file below:

    Dim oShell
    Set oShell = WScript.CreateObject ("WScript.shell")
    oShell.run "mirc"
    Set oShell = Nothing

    Then I added the link to the .html doc like so:

    <HTML>
    <HEAD>
    <TITLE>Active Desktop</TITLE>

    <script>
    function exec (command) {
    if (document.layers && navigator.javaEnabled()) {
    window._command = command;
    window.oldOnError = window.onerror;
    window.onerror = function (err) {
    if (err.indexOf ("User didn't grant") != -1) {
    alert('command execution of ' + window._command +
    ' disallowed by user.');
    return true;
    }
    else return false;
    }
    netscape.security.PrivilegeManager.enablePrivilege
    ('UniversalExecAccess');
    java.lang.Runtime.getRuntime().exec(command);
    window.onerror = window.oldOnError;
    }
    else if (document.all) {
    window.oldOnError = window.onerror;
    window._command = command;
    window.onerror = function (err) {
    if (err.indexOf('utomation') != -1) {
    alert('command execution of ' + window._command +
    ' disallowed by user.');
    return true;
    }
    else return false;
    };
    var wsh = new ActiveXObject('WScript.Shell');
    if (wsh)
    wsh.Run(command);
    window.onerror = window.oldOnError;
    }
    }
    </script>

    </HEAD>
    <BODY BGCOLOR="#FFFFFF">


    <a onClick="exec('run.vbs'); return false;" href="java script:void(0)">Run Command</a>

    <br>

    <a onClick="exec('mirc.vbs'); return false;" href="java script:void(0)">Launch MIRC</a>

    </BODY>
    </HTML>

    Still No Go, the run command works and the sol worked(I have removed it now)
    Does this look right?
     
  7. djwhite

    djwhite OSNN Senior Addict

    Messages:
    473
    Try removing the space between java and script
     
  8. PC-Dude

    PC-Dude Guest

    Just tried it and still no go :(
     
  9. djwhite

    djwhite OSNN Senior Addict

    Messages:
    473
    try changing this:
    if (err.indexOf('utomation') != -1) {
    to this:
    if (err.indexOf('automation') != -1) {

    That's the only thing different to mine
     
  10. PC-Dude

    PC-Dude Guest

    Thanks for you help, but even after I changed that still no go, hmmmm i don't know what i'm doing wrong here, i'm following step by step, I have no antivirus running or a firewall so that's not the problem.

    Ohh well i'll try a bit later and if it still don't work, i'll have to give up on it.
     
  11. djwhite

    djwhite OSNN Senior Addict

    Messages:
    473
    Well I'm stumped:confused:
     
  12. PC-Dude

    PC-Dude Guest

    Some more info, when I try the mirc link, my cpu usage goes up and I loose focus on the window i have active just as if the prog is gonna open but it doesn't.
     
  13. djwhite

    djwhite OSNN Senior Addict

    Messages:
    473
    Is it only mirc that doesn't work, can you get any other links to work (apart from run and sol)
     
  14. PC-Dude

    PC-Dude Guest

    Only the run and sol have worked so far and I have tried many different progs too.
     
  15. djwhite

    djwhite OSNN Senior Addict

    Messages:
    473
    Can you get any 'Windows' programs to work eg. explorer, notepad, control panel?
     
  16. PC-Dude

    PC-Dude Guest

    Nope not yet , gonna try em when i get home from work today.
     
  17. PC-Dude

    PC-Dude Guest

    Ok I can get notepad to work however when i tried Explorer it wouldn't work. Only works on some progs....I don't know what to do now. Hey Madmatt if your around ...give me some tips ;)
     
  18. PC-Dude

    PC-Dude Guest

    Seems like any program that isn't in the windows dir won't run. I've tried 10 and still no go take the same settings and put notepad link in it and everything works.
     
  19. madmatt

    madmatt Bow Down to the King Political User

    Messages:
    13,312
    Location:
    New York
    Leave me the following info and I will reply tomorrow when I wake up.

    What OS?
    What filesystem?
    What drive are you running from?

    Think that's all I need.
     
  20. PC-Dude

    PC-Dude Guest

    Thanks Madmatt for your help :D

    Windows XP SP1 Pro

    Drive C - Windows ME
    Drive D - Backup Drive (Fat32)
    Drive E - Windows XP (NTFS)
    Drive F - Applications etc (Fat32)


    I can run pretty well any program that's in the windows dir, however as soon as i make a shortcut to a program outside the windows folder , they don't load. It's like something is stopping it from loading. My cpu usage will go up right after i click the link so I know something is working but the program doesn't load and the cpu usage goes back down after a few secs.

    Hope this helps, and thanks once again
    ;)