Sign in to follow this  
Followers 0
Guest sydullasyed

How can we send a part of data of a text file to other text file

2 posts in this topic

Hi

a txt File contais the following information.....

================================================

Shared resources at \\sydsye

ssss

Share name Type Used as Comment

-------------------------------------------------------------------------------

sc Disk

testshare Disk testshare

The command completed successfully.

=================================================

i need only the share names (so that i can check the existance of share names)

if we move only the share names to other txt file i think it's easy to check.

is there any way how to send only the share names ?

or else can we check here itself (i.e. with in this file only)

Please assist me

netview.txt

Share this post


Link to post
Share on other sites



#2 ·  Posted (edited)

Maybe loop FileReadLine, to all the lines, and check StringInStr for "Share name Type" and if it occurs then return the line to a variable (array?)?

Oh then FileWriteLine to save all returned lines

Edited by Rad

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0