I am fairly new to programming/foxpro. I am rewriting an existing dos application using vfp 8. The application has the ability to setup new company files. Upon creating these company files, it creates a folder in the application directory (for example if I setup company 54, a folder called "Data54" will be created with all the dbf files in that folder). My question is, how can I make this happen? I want to create a folder for a company to work out of. Any help at all would be much, much appreciated!!

Re: Newbie question by Ted

Ted
Thu Mar 04 16:11:57 CST 2004

See MKDIR for creating the folder. Then copy the structures of the dbf
files you want to that folder.

"Ryan" <anonymous@discussions.microsoft.com> wrote in message
news:EE3209FD-FAE0-40F3-A360-C5907AFB64EE@microsoft.com...
> I am fairly new to programming/foxpro. I am rewriting an existing dos
application using vfp 8. The application has the ability to setup new
company files. Upon creating these company files, it creates a folder in the
application directory (for example if I setup company 54, a folder called
"Data54" will be created with all the dbf files in that folder). My question
is, how can I make this happen? I want to create a folder for a company to
work out of. Any help at all would be much, much appreciated!!



RE: Newbie question by Leemi

Leemi
Wed Mar 03 16:18:10 CST 2004

Hi:

Try this:

Cfolder="c:\data54"
MD &cfolder


I hope this helps.

This posting is provided "AS IS" with no warranties, and confers no rights.

Sincerely,
Microsoft FoxPro Technical Support
Lee Mitchell

*-- VFP8 HAS ARRIVED!! --*
Read about all the new features of VFP8 here:
http://www.universalthread.com/VisualFoxPro/News/VFP8Release.asp
Purchase VFP8 here:
http://shop.microsoft.com/Referral/Productinfo.asp?siteID=11518

Keep an eye on the product lifecycle for Visual FoxPro here:
http://support.microsoft.com/default.aspx?id=fh;[ln];lifeprodv
- VFP5 Mainstream Support retired June 30th, 2003
- VFP6 Mainstream Support retires Sept. 30th, 2003


>I am fairly new to programming/foxpro. I am rewriting an existing dos
application using vfp 8. >The application has the ability to setup new
company files. Upon creating these company files, it >creates a folder in
the application directory (for example if I setup company 54, a folder
called >"Data54" will be created with all the dbf files in that folder). My
question is, how can I make this >happen? I want to create a folder for a
company to work out of. Any help at all would be much, >much appreciated!!


Re: Newbie question by Jeroen

Jeroen
Wed Mar 03 18:26:46 CST 2004

On Wed, 03 Mar 2004 22:18:10 GMT, Leemi@online.microsoft.com (Lee
Mitchell) wrote:

>Try this:
>
>Cfolder="c:\data54"
>MD &cfolder

It's better to use name-substitution, then it also works with long
filenames:
lcFolder="c:\long dir name"
MD (lcFolder)

Since you probably are already in your application folder (see SET
DEFAULT TO x; and SET("DEFAULT") ), you can also use a relative dir
lcSubFolder="my data folder"
MKDIR (lcSubFolder)

>
>>I am fairly new to programming/foxpro. I am rewriting an existing dos
>application using vfp 8. >The application has the ability to setup new
>company files. Upon creating these company files, it >creates a folder in
>the application directory (for example if I setup company 54, a folder
>called >"Data54" will be created with all the dbf files in that folder). My
>question is, how can I make this >happen? I want to create a folder for a
>company to work out of. Any help at all would be much, >much appreciated!!