Please start any new threads on our new
site at https://forums.sqlteam.com. We've got lots of great SQL Server
experts to answer whatever question you can come up with.
| Author |
Topic |
|
dasu
Posting Yak Master
104 Posts |
Posted - 2004-09-19 : 03:17:49
|
| Hello every body , please suggest me a solution for this case. like i want to delete all the files which are there in c:\dasdirectory before that i have to test whether this file exists there or not.if file is there then i will delete that. so please suggest me proper solution in vb script.regardsdasu.g |
|
|
dasu
Posting Yak Master
104 Posts |
Posted - 2004-09-19 : 04:27:57
|
| generally in mssqlserver we will find a specific pattern like this%123% but how to get same affect in vbscript please tell me thissolutionregardsdasu.g |
 |
|
|
timmy
Master Smack Fu Yak Hacker
1242 Posts |
Posted - 2004-09-19 : 19:07:36
|
| [code]dim fsoset fso = CreateObject("Scripting.FileSystemObject")if fso.FileExists(yourFileName) then ' insert your code hereend if[/code]Have a look at the VBScript documentation under the FileSystemObject for more info |
 |
|
|
|
|
|