Jump to content
Sign in to follow this  
Guest sydullasyed

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

Recommended Posts

Guest sydullasyed

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
Rad

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  

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.