MSFN Forum: Help with Winrar and vbs - MSFN Forum

Jump to content


Unattended CD/DVD Guide Homepage · MSFN Forum Rules

Welcome to the Applications Installs forum. Make sure you read the forum rules before you start posting.

Links/Requests to warez and/or any illegal material (porn, cracks, serials, etc..) will not be tolerated. Discussion of circumventing WGA/activation/timebombs/keygens or any other illegal activity will also not be tolerated.

We try our best to keep this forum clean of illegal content. If you see any illegal activity use the "report" button you find in every post to report the specific post to the moderators. If you ignore any of the rules you will be banned without notice.

Read Forum Rules
Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

Help with Winrar and vbs Rate Topic: -----

#1 User is offline   evilvoice 

  • Ditchy McAbandonpants
  • PipPipPipPipPip
  • Group: Members
  • Posts: 946
  • Joined: 27-January 04

Posted 08 December 2004 - 08:54 AM

Im trying to create a vbs to autoload my preferences, but I cant seem to get the vbs to execute winrar so itll import my stuff...can someone check this and help me?

Set WshShell = WScript.CreateObject("WScript.Shell")
WshShell.Run "%ProgramFiles%\WinRAR\WinRAR.exe"
Wscript.Sleep 1000
WshShell.AppActivate "WinRAR - WinRAR"
Wscript.Sleep 500
WshShell.SendKeys "^s"
Wscript.Sleep 500
WshShell.SendKeys "+{TAB}"
Wscript.Sleep 500
WshShell.SendKeys "{LEFT 1}"
Wscript.Sleep 500
WshShell.SendKeys "{TAB}"
Wscript.Sleep 500
WshShell.SendKeys "{ENTER}"
Wscript.Sleep 500
WshShell.SendKeys "%{F4}"
Wscript.Sleep 500

Set WshShell = nothing
WScript.Quit()



#2 User is offline   Astalavista 

  • MSFN loyalist
  • PipPipPipPipPipPipPipPipPip
  • Group: Members
  • Posts: 3,338
  • Joined: 02-December 03

Posted 08 December 2004 - 08:55 AM

ok what is a vbs (visual basic?)

#3 User is offline   evilvoice 

  • Ditchy McAbandonpants
  • PipPipPipPipPip
  • Group: Members
  • Posts: 946
  • Joined: 27-January 04

Posted 08 December 2004 - 08:57 AM

visual basic script

#4 User is offline   Astalavista 

  • MSFN loyalist
  • PipPipPipPipPipPipPipPipPip
  • Group: Members
  • Posts: 3,338
  • Joined: 02-December 03

Posted 08 December 2004 - 09:42 AM

my winrar preferrences is stored in a reg file.

did u know that?

#5 User is offline   evilvoice 

  • Ditchy McAbandonpants
  • PipPipPipPipPip
  • Group: Members
  • Posts: 946
  • Joined: 27-January 04

Posted 08 December 2004 - 10:09 AM

and so are mine...when I ran it from my sfx archive (I rebuilt RAR Labs exe to include my key and settings), it does not load until I open winrar and goto settings...which is what the vbs script is supposed to do. Also, it says winrar will autoload you settings if you export it to the dir, but that isnt true either...the only sure method Ive found is by having settings.reg in your dir and click on settings in winrar (you dont actually change anything, you just view it really.

Its nice that it works for you that way...but it doesnt answer my question...I need to know why the vbs isnt running winrar.exe. I want to use a variable for it, if someone knows what Im missing, it would be great.

#6 User is offline   Astalavista 

  • MSFN loyalist
  • PipPipPipPipPipPipPipPipPip
  • Group: Members
  • Posts: 3,338
  • Joined: 02-December 03

Posted 08 December 2004 - 10:14 AM

read your pm

#7 User is offline   hulala.[uk] 

  • inside the computer
  • Group: Members
  • Posts: 48
  • Joined: 23-January 04

Posted 08 December 2004 - 12:15 PM

sorry about last post i got the wrong folder, but try this one should work, works for my itunes, so should work for your winrar

Set WshShell = WScript.CreateObject("WScript.Shell")
WshShell.Run "cmd /K cd %programfiles%\winrar & winrar.exe", 0, false


#8 User is offline   prathapml 

  • Follow the rules please :-)
  • Group: Patrons
  • Posts: 6,791
  • Joined: 14-November 03
  • OS:Windows 7 x64
  • Country: Country Flag

Posted 08 December 2004 - 01:44 PM

If the VBS is not working, try Auto-IT.

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users



All trademarks mentioned on this page are the property of their respective owners
Copyright © 2001 - 2013 msfn.org
Privacy Policy