Re: mkdir
- From: droose <droose@xxxxxxxxxxxxxxxxxxxxxxxxx>
- Date: Tue, 5 Apr 2005 15:59:03 -0700
Thanks for the replies. Here is my code:
pathName = "C:\Program Files\PartyPoker\HandHistory\" + screenName + "\"
'make a directory to hold the files we want to process
On Error Resume Next
MkDir ("C:\Program Files\PartyPoker\HandHistory\pptemp")
On Error GoTo 0
SetAttr "C:\Program Files\PartyPoker\HandHistory\pptemp", vbNormal
'Get the files and copy then to ppemp
For i = 0 To File2.ListCount - 1
a = File2.List(i)
If InStr(1, a, b) <> 0 Then
pathName = pathName + fileDate + "\" + File2.List(i)
FileCopy pathName, "C:\Program Files\PartyPoker\HandHistory\pptemp"
End If
Next i
'set File1 path to pptemp
File1.Path = "C:\Program Files\PartyPoker\HandHistory\pptemp"
'process the files
Poker.Show (1)
'delete the directory
RmDir ("C:\Program Files\PartyPoker\HandHistory\pptemp")
The filecopy line returns the following error:
Run-time error '75':
Path/File access error
Maybe I don't understand what error '75' means.
.
- Follow-Ups:
- Prev by Date: Re: mkdir
- Next by Date: Re: mkdir
- Previous by thread: Re: mkdir
- Next by thread: Re: mkdir
- Index(es):
Relevant Pages
|