problem with listdir

David wizzardx at gmail.com
Sun Apr 27 02:57:31 EDT 2008


On Sat, Apr 26, 2008 at 7:56 PM, jimgardener <jimgardener at gmail.com> wrote:
>
>  > * Run cmd.exe and see if you can run "dir f:\\code\\python\pgmgallery/*.*"
>  >
>
>  that causes a message 'Invalid switch - "*.*".'
>
>

Probably because on the command-line, / means a command-line option.
Been a while since I used DOS.

Try this instead:

dir f:\code\python\pgmgallery\*.*"

David.



More information about the Python-list mailing list