Guest sydullasyed Posted August 22, 2006 Posted August 22, 2006 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 menetview.txt
Rad Posted August 22, 2006 Posted August 22, 2006 (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 August 22, 2006 by Rad
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now