Visual Basic Programming
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me

The Shed is going Social! Join us on FaceBook and Twitter and chime in on the conversation.

Go Back   Dev Shed ForumsProgramming Languages - MoreVisual Basic Programming

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old November 15th, 2012, 10:38 AM
dignitasmick dignitasmick is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Nov 2012
Posts: 3 dignitasmick User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 39 m 40 sec
Reputation Power: 0
Login script help

Here is the login script applied to computers, which basically creates a shortcut on the users desktop (any who logs into the affected pc's)

--------

strDesktop = "C:\Documents and Settings\All Users\Desktop"
set WshShell = WScript.CreateObject("WScript.Shell")
Set objFSO = CreateObject("Scripting.FileSystemObject")
If objFSO.FileExists(strDesktop & "\oururelhere.urel") Then

Else
Set shortcut = WshShell.createshortcut(strDesktop & "\oururelhere.urel")
shortcut.targetpath ="oururelhere.urel")
shortcut.save
End If

-------------

Works perfect, but now i want to enforce it to use Chrome (which is already installed on the users PC's but isn't the default browser and needs to stay that way!)


please help! its blagging my head!

Reply With Quote
  #2  
Old November 16th, 2012, 06:24 AM
dignitasmick dignitasmick is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Nov 2012
Posts: 3 dignitasmick User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 39 m 40 sec
Reputation Power: 0
Anyone?

Reply With Quote
  #3  
Old November 16th, 2012, 11:13 AM
medialint's Avatar
medialint medialint is offline
Type Cast Exception
Dev Shed God 20th Plane (14500 - 14999 posts)
 
Join Date: Apr 2004
Location: OAKLAND CA | Adam's Point (Fairyland)
Posts: 14,938 medialint User rank is General 112nd Grade (Above 100000 Reputation Level)medialint User rank is General 112nd Grade (Above 100000 Reputation Level)medialint User rank is General 112nd Grade (Above 100000 Reputation Level)medialint User rank is General 112nd Grade (Above 100000 Reputation Level)medialint User rank is General 112nd Grade (Above 100000 Reputation Level)medialint User rank is General 112nd Grade (Above 100000 Reputation Level)medialint User rank is General 112nd Grade (Above 100000 Reputation Level)medialint User rank is General 112nd Grade (Above 100000 Reputation Level)medialint User rank is General 112nd Grade (Above 100000 Reputation Level)medialint User rank is General 112nd Grade (Above 100000 Reputation Level)medialint User rank is General 112nd Grade (Above 100000 Reputation Level)medialint User rank is General 112nd Grade (Above 100000 Reputation Level)medialint User rank is General 112nd Grade (Above 100000 Reputation Level)medialint User rank is General 112nd Grade (Above 100000 Reputation Level)medialint User rank is General 112nd Grade (Above 100000 Reputation Level)medialint User rank is General 112nd Grade (Above 100000 Reputation Level)  Folding Points: 319635 Folding Title: Super Ultimate Folder - Level 1Folding Points: 319635 Folding Title: Super Ultimate Folder - Level 1Folding Points: 319635 Folding Title: Super Ultimate Folder - Level 1Folding Points: 319635 Folding Title: Super Ultimate Folder - Level 1Folding Points: 319635 Folding Title: Super Ultimate Folder - Level 1Folding Points: 319635 Folding Title: Super Ultimate Folder - Level 1
Time spent in forums: 6 Months 2 Weeks 2 Days 26 m 49 sec
Reputation Power: 8490
Facebook
If it's not the default browser then you need to specify the application. I don't have chrome installed but this is how it would work for firefox (you can put this in the Run... prompt in windows to test how it works)

Code:
firefox.exe "http://medialint.com"


Theoretically you should be able to replace firefox.exe with chrome's executable (chrome.exe?) to achieve the same. I don't know if it will let you make the shortcut that way programatically ... if you manually do it you need to browse for the full path of the executable.
__________________
medialint.com

“Today you are You, that is truer than true. There is no one alive who is Youer than You.” - Dr. Seuss

Last edited by medialint : November 16th, 2012 at 11:15 AM.

Reply With Quote
  #4  
Old November 19th, 2012, 02:08 AM
dignitasmick dignitasmick is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Nov 2012
Posts: 3 dignitasmick User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 39 m 40 sec
Reputation Power: 0
I've tried -

shortcut.targetpath =%userprofile%\Local Settings\Application

Data\Google\Chrome\Application\chrome.exe "insertaddresshere.com")

This doesnt seem to work

Any ideas?

Reply With Quote
Reply

Viewing: Dev Shed ForumsProgramming Languages - MoreVisual Basic Programming > Login script help

Developer Shed Advertisers and Affiliates



Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump

Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 


Powered by: vBulletin Version 3.0.5
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.

© 2003-2013 by Developer Shed. All rights reserved. DS Cluster - Follow our Sitemap