|
-
May 24th, 2002, 04:28 AM
#1
Thread Starter
Addicted Member
(Resolved)...Delete a shared file or folders (Win9x)
Hello,
Can anybody help me on how to delete a file or folder on the network using Windows 9x. I tried with the code below but it did not work. It works perfectly on WinNT or Win2k.
Code:
Dim fs, f, f1, sf
Dim strRemoteFolderPath as String
strRemoteFolderPath = txtPathName.Text
Set fs = CreateObject("Scripting.FileSystemObject")
Set f = fs.GetFolder(strRemoteFolderPath)
Set sf = f.Files
For Each f1 In sf
if f1.Name = txtFileName.Text then
f1.Delete True
end if
next
'End code
Any help will be appreciated
vbBoy
Last edited by vbBoy; May 28th, 2002 at 01:34 AM.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|