Photo Gallery Member List Search Calendars FAQ Ticket List Log Out


How do you guys know?

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

 

 
  
  Printable Version
All Forums >> [General Forum] >> Other Programming/Scripting Languages >> How do you guys know?
  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 >>
 How do you guys know? - 4/8/2006 3:47:51 AM   
  nicklas

 

Posts: 2
Score: 0
Joined: 3/7/2006
Status: offline
I've been searching around in this forum for some scripts that im might able to learn from.

But I find it impossible!

Do you use logic do get scripts? I mean seriously, look these scripts:





Const SHUTDOWN = 8
strComputer = "."
Set objWMIService = GetObject("winmgmts:" _
& "{impersonationLevel=impersonate,(Shutdown)}!\\" & _
strComputer & "\root\cimv2")
Set colOperatingSystems = objWMIService.ExecQuery _
("SELECT * FROM Win32_OperatingSystem")
For Each objOperatingSystem in colOperatingSystems
ObjOperatingSystem.Win32Shutdown(SHUTDOWN)
Next




Set objExplorer = CreateObject("InternetExplorer.Application")
objExplorer.Navigate "about:blank"
objExplorer.ToolBar = 1
objExplorer.StatusBar = 1
objExplorer.Width = 5000 
objExplorer.Height = 5000
objExplorer.Visible = 1




How do people come up with this stuff?!

 
 
Post #: 1
 
 RE: How do you guys know? - 4/8/2006 4:47:05 AM   
  Cybex


Posts: 412
Score: 0
Joined: 9/14/2005
From: Florida
Status: offline
Google...

Just a basic understanding of the language and how logic can be applied to accomplich a certain task.


Cybex

_____________________________

Common sense is not so common.

(in reply to nicklas)
 
 
Post #: 2
 
 RE: How do you guys know? - 4/8/2006 2:46:25 PM   
  DiGiTAL.SkReAM


Posts: 1097
Score: 6
Joined: 9/6/2005
From: Florida, USA
Status: offline
When I joined this board in Sept. of 2005, I knew very little about VBScripting.  Ok, I still don't know a lot, BUT... I'm able to get doen pretty much anything that i want to get done - it might not be the best or slickest way of doing it, but it *works*.  The point is, nobody just *knows* this stuff... it all comes from experience.  For me, the best thing I could have done is join this board.  It's awfully hard to sit there looking at a blank screen saying "I wonder what I should try to write to learn this language?" - for me, it's MUCh easier to have well-defined goals.  Therefore, i'd browse the posts here where folks were asking questions "How do you get a script to write to a text file?", or "How do you get vbs to copy a file?" for example.  I'd think "yeah, how *do* you do that?" and then I'd hit google with "vbscript copy a file" or "vbscript output text file".  And I wouldn't stop until I had the answer.
Now, granted, by that time, someone else had already answered the question about 99% of the time, but... I had still learned something. 

My point: It made things much easier for me to learn vbs to try answering some of the questions that people asked here.  And when I coulnd't get the answer - to read what other folks had replied with.

Either way, you win.

_____________________________

"There's the one man who learns by reading, the two men that learn by watching, and the rest of us have to pee on the electric fence for ourselves." - Roy Rogers

"Would you like to touch my monkey?" - Dieter (Mike Meyers)

(in reply to nicklas)
 
 
Post #: 3
 
 RE: How do you guys know? - 4/8/2006 8:41:54 PM   
  Snipah


Posts: 1341
Score: 6
Joined: 11/1/2004
From: Netherlands
Status: offline
It is the same like, looking under the hood of your car...It doesn't make sense at first sight, only after a little more experience and repetition, you find the logic hidden in that code....

Isn't it fun to program? hahaha

It took a while, but nowadays i know enough about i.e. HTML/VBScript/C++/PHP/CSS/Java/JavaScript/Pascal/BASIC/Batch/etc...and it wasn't easy to get there...

_____________________________

For more information, please see the "Read me First" topic.

http://www.visualbasicscript.com

(in reply to nicklas)
 
 
Post #: 4
 
 RE: How do you guys know? - 4/11/2006 8:15:46 AM   
  mcds99


Posts: 407
Score: 4
Joined: 2/28/2006
Status: offline
It's Magic, we work in the technology industry, scripting for years, all of a sudden we can type gibberish ;-D

(in reply to nicklas)
 
 
Post #: 5
 
 RE: How do you guys know? - 4/28/2006 9:54:06 AM   
  daluu

 

Posts: 26
Score: 0
Joined: 4/17/2006
Status: offline
that sample looks benign compared to truly cryptic programs, like some complex ones written in Perl and C, etc. VBScript is pretty English-like if you have good English skills.

(in reply to mcds99)
 
 
Post #: 6
 
 RE: How do you guys know? - 5/15/2006 4:46:17 AM   
  TNO


Posts: 1036
Score: 10
Joined: 12/18/2004
From: thenewobjective.com
Status: offline
 Posting the most cryptic program I can come up with:

In a PDF document this simply prints "Hello World"


      

ooo...or even better, in C


      



< Message edited by TNO -- 5/15/2006 4:49:28 AM >


_____________________________

Consolidated Script Component: The Acid Test

A universe of complexity...

(in reply to daluu)
 
 
Post #: 7
 
 
 
  

If you found our site useful please link to us <a href="http://www.visualbasicscript.com">VisualBasicScript.com</a>.
All Forums >> [General Forum] >> Other Programming/Scripting Languages >> How do you guys know? 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