Photo Gallery Member List Search Calendars FAQ Ticket List Log Out


new script

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

 

 
  
  Printable Version
All Forums >> [Scripting] >> WSH & Client Side VBScript >> new script
  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 >>
 new script - 6/8/2008 1:11:29 PM   
  octavyson

 

Posts: 1
Score: 0
Joined: 6/8/2008
Status: offline
Hi there!

It's the first day for me on this forum and I have choosed to register because I saw a lot of interesting discussions about scripting;
For the moment, i have one big problem; i want to create a  vbs script wich can do the following:

-open one program (.exe), some kind of P2P client, a personalised one, located on boot partiton, "C:\Program Files\P2P Program\Start.exe
-click on the "browse" button
-select the desired file "test.txt"
-load the file
-click the "transfer" button

end;

Can you please advice me if i have choosed the optimized method, to use vbs for this action or can you please advice me what should I use, in order to solve my dilemma.
If vbs could be the solution, could someone give me a starting point to create the vb script?

I really need this problem to be solved by the end of the week...so i would be thankful if you could help me.

octavyson.

< Message edited by octavyson -- 6/8/2008 1:16:17 PM >
 
 
Post #: 1
 
 RE: new script - 6/8/2008 7:48:09 PM   
  ginolard


Posts: 1053
Score: 21
Joined: 8/10/2005
Status: offline
You can do all this with Vbscript, yes although not very reliably.

To open a program you'll need to be looking into the Run method of the SHell object.  To do the rest you COULD use SendKeys but it's very unreliable.  I would consider using a 3rd party tool called AutoIt.

_____________________________

Author of ManagePC - http://managepc.net
AD Query Template - http://www.visualbasicscript.com/m_40609/tm.htm
Consolidated Scripting Framework - http://www.visualbasicscript.com/m_59109/tm.htm

(in reply to octavyson)
 
 
Post #: 2
 
 
 
  

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 >> new script 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