Jump to content

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

Guest sydullasyed

Recommended Posts

Guest sydullasyed


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


Shared resources at \\sydsye


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


Link to comment
Share on other sites

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
Link to comment
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

  • Recently Browsing   0 members

    • No registered users viewing this page.
  • Create New...