hi,
how is it possible to parse a file name. Ok..to be more specific abt my requirement :
In my VB code, I am connecting to a SQL Server and then setting a database name to a variable. I have hardcoded for now but the name of the SQL Server and the Database will be a part of the file name at a particular path.
For eg., at the location c:\data\bin I have a file like
"pom_sqlserver_sql_database" where sqlserver is the name of the SQL server and sql_database is the name of the database. the word pom is standard and will be followed by the name of the server and the database. These can change and I will have to get them by searching for the word pom at the location.
I am really not sure how to proceed with this.
Please help !
Vidya.
how is it possible to parse a file name. Ok..to be more specific abt my requirement :
In my VB code, I am connecting to a SQL Server and then setting a database name to a variable. I have hardcoded for now but the name of the SQL Server and the Database will be a part of the file name at a particular path.
For eg., at the location c:\data\bin I have a file like
"pom_sqlserver_sql_database" where sqlserver is the name of the SQL server and sql_database is the name of the database. the word pom is standard and will be followed by the name of the server and the database. These can change and I will have to get them by searching for the word pom at the location.
I am really not sure how to proceed with this.
Please help !
Vidya.