Welcome guest, is this your first visit? Create Account now to join.
Results 1 to 2 of 2

This is a discussion on Chrome Desktop Shortcut within the Chrome Troubleshooting section, part of the Google Chrome category: For most of my programs that connect to the internet I actually run a batch script (yes yes, batch scripts ...


  1. #1
    Cadavre's Avatar
    Cadavre is offline Junior Member
    Join Date
    Oct 2009
    Posts
    1

    Default Chrome Desktop Shortcut

    For most of my programs that connect to the internet I actually run a batch script (yes yes, batch scripts are bad, fine. My whole computer is held together by batch files and blue tac!) that first updates my virus scanner and ensures my firewall is on and uptodate. I also run a VBScript to ensure that this batch script runs in the background, so I don't have a command prompt screen pop up everytime I run a progam.

    This works perfectly with all of the browsers I use, except Google Chrome.

    The shortcut for the browsers is: -

    • C:\WINDOWS\system32\wscript.exe "C:\Documents and Settings\Admin\My Documents\BatchFiles\invisible.vbs" "C:\Documents and Settings\Admin\My Documents\BatchFiles\googlechrome.bat"


    • C:\WINDOWS\system32\wscript.exe "C:\Documents and Settings\Admin\My Documents\BatchFiles\invisible.vbs" "C:\Documents and Settings\Admin\My Documents\BatchFiles\ie.bat"


    • C:\WINDOWS\system32\wscript.exe "C:\Documents and Settings\Admin\My Documents\BatchFiles\invisible.vbs" "C:\Documents and Settings\Admin\My Documents\BatchFiles\Mozilla Firefox.bat"


    • C:\WINDOWS\system32\wscript.exe "C:\Documents and Settings\Admin\My Documents\BatchFiles\invisible.vbs" "C:\Documents and Settings\Admin\My Documents\BatchFiles\opera.bat"


    • C:\WINDOWS\system32\wscript.exe "C:\Documents and Settings\Admin\My Documents\BatchFiles\invisible.vbs" "C:\Documents and Settings\Admin\My Documents\BatchFiles\safari.bat"

    Which basically opens up my little VBScript -
    Code:
    CreateObject("Wscript.Shell").Run """" & WScript.Arguments(0) & """", 0, False
    Which in turn opens up the batch file specified in the desktop shortcut, so for Chrome that would be -
    Code:
    ECHO OFF
    cls
    start "Update" "C:\Documents and Settings\Admin\My Documents\BatchFiles\Updater.bat"
    ping 1.1.1.1 -n 1 -w 2000 > nul
    :repeat
    Tasklist | Find /i "cmd.exe"
    IF "%ERRORLEVEL%" == "0" (
    goto continue
    ) Else (
    goto repeat
    )
    :continue
    start "browser" "C:\Documents and Settings\Admin\Local Settings\Application Data\Google\Chrome\Application\chrome.exe"
    The problem is, Google Chrome fairly regularly decides to change this shortcut to: -

    • C:\Documents and Settings\Admin\Local Settings\Application Data\Google\Chrome\Application\chrome.exe "C:\Documents and Settings\Admin\My Documents\BatchFiles\googlechrome.bat"

    Which instead of running my batch file and allowing that to manage the program, it opens Chrome then asks if I want to download "C:\Documents and Settings\Admin\My Documents\BatchFiles\googlechrome.bat".

    None of my other browsers do this, so I was wondering if it was a security "feature". And if so, can I turn it off?
    Last edited by Cadavre; 10-07-2009 at 11:41 AM. Reason: forgot to add a sample of one of the batch scripts

  2. #2
    Benni is offline Senior Member
    Join Date
    May 2009
    Posts
    354

    Default

    I havn't read your post closely, but Chrome uses the task-manager (or what its name is), so it runs a scheduled check for updates every x(24) hour.. A guess would be, that it either creates the shortcut here, or apply it after having installed the update.. A quick guess..

Similar Threads

  1. Chrome and Google Desktop - Ctrl twice bug
    By NicholasPufal in forum Bugs and Vulnerabilities
    Replies: 4
    Last Post: 03-21-2011, 08:04 PM
  2. Shortcut key for bookmarks
    By peterno3 in forum Chrome Plugins
    Replies: 11
    Last Post: 12-27-2010, 04:29 PM
  3. FastBook - Facebook Shortcut
    By samot in forum Chrome Plugins
    Replies: 9
    Last Post: 09-25-2009, 02:08 AM
  4. Save As (Ctrl-S) sometimes only creates a broken shortcut
    By DdoubleD in forum Bugs and Vulnerabilities
    Replies: 10
    Last Post: 08-03-2009, 12:11 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •