forum.vdsworld.com Forum Index forum.vdsworld.com
Visit VDSWORLD.com
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 


Only reading from part of an input, help

 
Post new topic   Reply to topic    forum.vdsworld.com Forum Index -> General Help
View previous topic :: View next topic  
Author Message
LinkSisco
Valued Newbie


Joined: 17 May 2002
Posts: 30
Location: UK

PostPosted: Fri Jun 28, 2002 7:19 pm    Post subject: Only reading from part of an input, help Reply with quote

Ok, say i have an exe that runs from switchs...

and i enter into the cmd prompt "exename.exe word:something"

how could i get my program to remove the word: leaving just something?

ps im using vds 3...
Thanks.
Back to top
View user's profile Send private message
SnarlingSheep
Professional Member
Professional Member


Joined: 13 Mar 2001
Posts: 759
Location: Michigan

PostPosted: Fri Jun 28, 2002 7:56 pm    Post subject: Reply with quote

Well if the input will always be "word:something" then you can remove word: from %1.
Code:

  REM %1 holds word:something
  %%Word = @SUBSTR(%1,6,@LEN(%1))
  REM %%Word will now hold everything after word:, which is "something"
  info %%Word
 

Hope that makes sense.

_________________
-Sheep
My pockets hurt...
Back to top
View user's profile Send private message Send e-mail
LinkSisco
Valued Newbie


Joined: 17 May 2002
Posts: 30
Location: UK

PostPosted: Fri Jun 28, 2002 8:01 pm    Post subject: Reply with quote

Perfect thank you.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    forum.vdsworld.com Forum Index -> General Help All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum

Twitter@vdsworld       RSS

Powered by phpBB © 2001, 2005 phpBB Group