Re: mkdir

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance



I recommend doing a debug.print of the filenames generated in the loop to
ensure each is a valid file name.

--

Randy Birch
MS MVP Visual Basic
http://vbnet.mvps.org/
----------------------------------------------------------------------------
Read. Decide. Sign the petition to Microsoft.
http://classicvb.org/petition/
----------------------------------------------------------------------------



"droose" <droose@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:43053D2E-F74B-4FC8-B475-270D13E3AB57@xxxxxxxxxxxxxxxx
: 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.
:

.



Relevant Pages

  • Re: It is not possible to create a recursive function over a pyGTK treeStore
    ... I would like to create a minimalist file browser using pyGTK. ... I wrote a recursive function that would go through the file system ... But I don't see the point of this listcomp when you could filter out special names in the for loop. ... for filename in filenames: ...
    (comp.lang.python)
  • Re: nesting for statements?
    ... variable "Discretisation error factor" using a for statement that temporarily populates "Disc", which is used as input in "Discretisation ... # Variable for name of output raster. ... reference the filename list while you are in the loop. ... If you do not want to create all of the filenames in memory at one time, ...
    (comp.lang.python)
  • Re: Problem using non-standard filenames
    ... Please don't top-post! ... of all the filenames, to a file, reading the filenames and, ... then go to the outer, enclosing loop, otherwise the list of filenames ... them normally since there are no nasty chars) ...
    (comp.unix.shell)
  • Re: problem in using "fopen" inside a loop
    ... I have a file, 'list2.txt', which contains all my filenames that need ... By using the following loop I read the filenames ... Exercise your debugging skills: ... How do you access the first element as a ...
    (comp.soft-sys.matlab)
  • Re: Movinf files to recycle bin
    ... I want to loop through the client's folder and only delete certain ... wrap it in a Do loop to cycle through the various filenames. ... Sub aaDELETE_FILES_FROM_FOLDER ... surname = "surname" ...
    (microsoft.public.excel.misc)