Jump to content


 


Register a free account to unlock additional features at BleepingComputer.com
Welcome to BleepingComputer, a free community where people like yourself come together to discuss and learn how to use their computers. Using the site is easy and fun. As a guest, you can browse and view the various discussions in the forums, but can not create a new topic or reply to an existing one unless you are logged in. Other benefits of registering an account are subscribing to topics and forums, creating a blog, and having no ads shown anywhere on the site.


Click here to Register a free account now! or read our Welcome Guide to learn how to use this site.

Photo

How to run vbs script on start up using regedit


  • Please log in to reply
12 replies to this topic

#1 robelneo

robelneo

  • Members
  • 6 posts
  • OFFLINE
  •  
  • Local time:01:19 PM

Posted 29 March 2014 - 10:46 AM

Hi I had a vbs script that I would like to run on start up unfortunately the task scheduler is not working ..

Is there a way I can run it using regedit and what would be the code to this and how can I set it up

 

A third party software is ok if you know one

Thanks everybody...


Edited by hamluis, 29 March 2014 - 12:23 PM.
Moved from Startup Program DB to XP - Hamluis.


BC AdBot (Login to Remove)

 


#2 xXToffeeXx

xXToffeeXx

    Bleepin' Polar Bear


  • Malware Response Instructor
  • 6,087 posts
  • OFFLINE
  •  
  • Gender:Female
  • Location:The Arctic Circle
  • Local time:05:19 AM

Posted 29 March 2014 - 11:43 AM

Hi,

 

Easier to use startup folders and put the file in there than mess around with the registry, unless there's a specific reason not to.

 

The path for the startup folder on Windows XP is:

For current user:
C:\Documents and Settings\%username%\Start Menu\Programs\Startup

 

For all users:
C:\Documents and Settings\All Users\Start Menu\Programs\Startup

 

 

The path for Windows Vista+ is:

For current user:

C:\users\%username%\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Startup
 
For all users:
C:\ProgramData\Microsoft\Windows\Start Menu\Programs\Startup

 

xXToffeeXx~


~If I am helping you and you have not had a reply from me in two days, please send me a PM~

 

logo-25.pngID Ransomware - Identify What Ransomware Encrypted Your Files [Support Topic] - If we have helped you out and you want to support what we do, you can do so here

 

 ~Twitter~ | ~Malware Analyst at Emsisoft~


#3 robelneo

robelneo
  • Topic Starter

  • Members
  • 6 posts
  • OFFLINE
  •  
  • Local time:01:19 PM

Posted 29 March 2014 - 06:16 PM

Hi thanks for this although it's a good way but not working at all as the vbs script is not running at maybe what I really need is a software or a third party tools



#4 xXToffeeXx

xXToffeeXx

    Bleepin' Polar Bear


  • Malware Response Instructor
  • 6,087 posts
  • OFFLINE
  •  
  • Gender:Female
  • Location:The Arctic Circle
  • Local time:05:19 AM

Posted 30 March 2014 - 09:13 AM

Hi,

 

What's the name and filepath of your vbs file? You shouldn't need another piece of software, I'm not sure why the startup folder isn't working for you however.

 

xXToffeeXx~


~If I am helping you and you have not had a reply from me in two days, please send me a PM~

 

logo-25.pngID Ransomware - Identify What Ransomware Encrypted Your Files [Support Topic] - If we have helped you out and you want to support what we do, you can do so here

 

 ~Twitter~ | ~Malware Analyst at Emsisoft~


#5 robelneo

robelneo
  • Topic Starter

  • Members
  • 6 posts
  • OFFLINE
  •  
  • Local time:01:19 PM

Posted 30 March 2014 - 02:42 PM

Hi,

 

What's the name and filepath of your vbs file? You shouldn't need another piece of software, I'm not sure why the startup folder isn't working for you however.

 

xXToffeeXx~

hi this is the code of my vbs file :  CreateObject("Wscript.Shell").Run "mybat.bat",0,True when I create a shortcut on my start up folder the vbs is showing error is there a code we can add so it can run on start up ?

 

Thanks to all your concern



#6 xXToffeeXx

xXToffeeXx

    Bleepin' Polar Bear


  • Malware Response Instructor
  • 6,087 posts
  • OFFLINE
  •  
  • Gender:Female
  • Location:The Arctic Circle
  • Local time:05:19 AM

Posted 01 April 2014 - 02:07 PM

Hi,

 

What's the error code it produces when you create a shortcut?

 

xXToffeeXx~


~If I am helping you and you have not had a reply from me in two days, please send me a PM~

 

logo-25.pngID Ransomware - Identify What Ransomware Encrypted Your Files [Support Topic] - If we have helped you out and you want to support what we do, you can do so here

 

 ~Twitter~ | ~Malware Analyst at Emsisoft~


#7 robelneo

robelneo
  • Topic Starter

  • Members
  • 6 posts
  • OFFLINE
  •  
  • Local time:01:19 PM

Posted 01 April 2014 - 05:11 PM

Hi,

 

What's the error code it produces when you create a shortcut?

 

xXToffeeXx~

 

Hi,

 

What's the error code it produces when you create a shortcut?

 

xXToffeeXx~

 

Hi it is showing "the system cannot find the file specified"  line:1  Char: 1source: null



#8 xXToffeeXx

xXToffeeXx

    Bleepin' Polar Bear


  • Malware Response Instructor
  • 6,087 posts
  • OFFLINE
  •  
  • Gender:Female
  • Location:The Arctic Circle
  • Local time:05:19 AM

Posted 02 April 2014 - 12:47 PM

Hi,

 

Where is the vbs file located at this moment in time (the filepath if possible)? 

 

xXToffeeXx~


~If I am helping you and you have not had a reply from me in two days, please send me a PM~

 

logo-25.pngID Ransomware - Identify What Ransomware Encrypted Your Files [Support Topic] - If we have helped you out and you want to support what we do, you can do so here

 

 ~Twitter~ | ~Malware Analyst at Emsisoft~


#9 robelneo

robelneo
  • Topic Starter

  • Members
  • 6 posts
  • OFFLINE
  •  
  • Local time:01:19 PM

Posted 02 April 2014 - 05:24 PM

Hi,

 

Where is the vbs file located at this moment in time (the filepath if possible)? 

 

xXToffeeXx~

Hi

this is it's file path C:\Documents and Settings\%username%\Start Menu\Programs\Startup



#10 xXToffeeXx

xXToffeeXx

    Bleepin' Polar Bear


  • Malware Response Instructor
  • 6,087 posts
  • OFFLINE
  •  
  • Gender:Female
  • Location:The Arctic Circle
  • Local time:05:19 AM

Posted 03 April 2014 - 10:48 AM

Hi,

 

Other than the startup folder, is it located anywhere else? Is the file in the startup folder a shortcut or the actual vbs file?

 

xXToffeeXx~


~If I am helping you and you have not had a reply from me in two days, please send me a PM~

 

logo-25.pngID Ransomware - Identify What Ransomware Encrypted Your Files [Support Topic] - If we have helped you out and you want to support what we do, you can do so here

 

 ~Twitter~ | ~Malware Analyst at Emsisoft~


#11 robelneo

robelneo
  • Topic Starter

  • Members
  • 6 posts
  • OFFLINE
  •  
  • Local time:01:19 PM

Posted 03 April 2014 - 11:07 AM

Hi,

 

Other than the startup folder, is it located anywhere else? Is the file in the startup folder a shortcut or the actual vbs file?

 

xXToffeeXx~

Hi the batch has it's own folder it's on desktop but the vbs script that targeted the batch file is located on the start up



#12 JohnC_21

JohnC_21

  • Members
  • 24,849 posts
  • OFFLINE
  •  
  • Gender:Male
  • Local time:12:19 AM

Posted 03 April 2014 - 12:06 PM

Hello,

See if the suggestions listed here help.



#13 FixationPC

FixationPC

  • Members
  • 2 posts
  • OFFLINE
  •  
  • Gender:Male
  • Location:Brentwood CA
  • Local time:10:19 PM

Posted 25 August 2014 - 04:01 PM

Hi! Did this question get answered? I also had a problem like this. My solution was to place my script and my batch file on the root of C and point the shortcut from All Users startup to the script on the root of C






0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users