Thanks Gil !

    That's definitely one to watch for !!!!
No more dashes !

-- 
                                       ......bobp
                             http://www.prosumers.ca
                             http://bpatterson.qhealthbeauty.com
                             http://apatterson2.qhealthzone.com

  -------------------------------orig.------------------------- 
 On Monday 19 March 2007 01:06, mrgmhale wrote:
> > Try changing the space to
> > a dash or underscore ....   As a matter of standards, I NEVER use spaces
> > in file names, and try to keep name lengths to 8.3 if possible - the old
> > MeSsy-DOS bugs still bite !!
> >
> 
> I always use an underscore character instead of spaces.  And, with VFP I
> always replace nested dash ("-") characters with an Underscore.  Why?  Try
> this little experiment.  CREATE a new table, and name it Table-1.dbf.  When
> you open it VFP (as did FoxPro/FoxBase/dBase in the past) will open it with
> CURSOR name of table_1.  If you introduce file names using dash characters
> in them, which are perfectly legal in DOS and Windows file naming
> convention, VFP will mess with your head something fierce.
> 
> Gil
> 
> > -----Original Message-----
> > From: [EMAIL PROTECTED]
> > [mailto:[EMAIL PROTECTED] Behalf Of Bob Patterson
> > Sent: Sunday, March 18, 2007 6:22 PM
> > To: [EMAIL PROTECTED]
> > Subject: Re: File Copying Problems
> >
> >
> >
> > Hi John !
> >
> >     Two things come to mind - there VERY often can be problems with
> > a file or directory name containing SPACES, especially when using
> > macro substitution from variable names. Try changing the space to
> > a dash or underscore ....   As a matter of standards, I NEVER use spaces
> > in file names, and try to keep name lengths to 8.3 if possible - the old
> > MeSsy-DOS bugs still bite !!
> >
> >     The other possible problem is the length of the full path name -
> > I don't know what the limit is, but I have heard of others having a
> > problem with Windoze truncating after a certain number of
> > characters ....     again, using variable substitution.
> >
> > --
> >                                        ......bobp
> >                              http://www.prosumers.ca
> >                              http://bpatterson.qhealthbeauty.com
> >                              http://apatterson2.qhealthzone.com
> >
> >   -------------------------------orig.-------------------------
> >  On Sunday 18 March 2007 15:56, John Weller wrote:
> > > I've written a small app to copy a directory from one location
> > to another as
> > > a backup and it's giving me the weirdest errors.  Any
> > enlightenment would be
> > > gratefully received.
> > >
> > > The directory being copied is D:\CELEBRATION FILE which is
> > being copied to
> > > F:\Backup\
> > >
> > > If I run as an app from the directory D:\COPYUTIL I get the following
> > > errors:
> > >
> > > One error is with the line COPY (tcSourceFile) TO (tcTargetName).
> > > The source file shows as D:\CELEBRATION FILE\SOURCECODE\PRGS\MAIN.FXP in
> > > Debug.
> > > The target name is F:\BACKUP\Mirror20070318a\SOURCECODE\PRGS\MAIN.FXP
> > > The error message is File
> > C:\docume~1\john\locals#1\temp\main.fxp does not
> > > exist!
> > >
> > > Another is where two of the files being copied CONTROL.SCX, and
> > CONTROL.SCT
> > > in the folder D:\CELEBRATION FILE\SOURCECODE\FORMS are shown as being in
> > > use - but they shouldn't be.  This app uses a form CONTROL but a totally
> > > different folder.
> > >
> > > If I run as an exe from C:\Program Fils\CopyUtil I get the
> > following errors:
> > >
> > > File 'c:\program files\copyutil\dbfs\about.dbf' does not exist.
> > > File 'c:\program files\copyutil\dbfs\logos.dbf' does not exist.
> > > File 'c:\program files\copyutil\forms\control.sct' does not exist.
> > > File 'c:\program files\copyutil\forms\control.scx' does not exist.
> > > File 'c:\vfp9 common code\graphics\h_point.cur' does not exist.
> > >
> > > Which is quite correct - they don't as they are components of
> > the exe and
> > > exist in D:\CopyUtil\Sourcecode\.
> > >
> > > There are over 1500 files in the folder I'm copying and the rest copy
> > > without any problems.
> > >
> > > I'm baffled!  But for the fact I hate being beaten I'd have
> > replaced the lot
> > > by RUN XCOPY...
> > >
> > > John Weller
> > > 01380 723235
> > > 07976 393631



_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://leafe.com/mailman/listinfo/profox
OT-free version of this list: http://leafe.com/mailman/listinfo/profoxtech
** All postings, unless explicitly stated otherwise, are the opinions of the 
author, and do not constitute legal or medical advice. This statement is added 
to the messages for those lawyers who are too stupid to see the obvious.

Reply via email to