Path in Visual FoxPro

Discussion in 'Windows Virtual Machine' started by HansPL, Sep 3, 2013.

  1. HansPL

    HansPL Bit poster

    Messages:
    8
    I have Visual FoxPro (VFP; database program), a Windows app, on my iMac. But I have a path problem. Here it is:

    All the VFP files I have created are in the following folder:

    Rifke [Home folder] > X-data > Rifke finance base

    The file in the above folder that I click on to start the finance database application is xxx.ftp. In that file, I have a path:

    "~/X-data/Rifke finance base/FoxyClasses/Global.vxc" [in VFP, I have to use the " ", since there are spaces in the path]

    I get an error message that the file in question does not exist (which, of course, is not true).

    I am successfully using Parallels otherwise.

    I have tried

    "/Rifke/X-data > Rifke finance base/FoxyClasses/Global.vxc"

    and

    /Macintosh hd/Rifke ...

    and a few other paths. Nothing works.

    So, the basic question is, how do you specify a path in a Windows app in order to get it to work when you run it in Parallels.

    Thank you very much for tips.

    Hans L
     
  2. Specimen

    Specimen Product Expert

    Messages:
    3,236
    Under Windows, the shared folders are treated as network folders and have a drive letter assigned. In Explorer you can see what is the drive letter that is assigned to your shared Home folder. Let's assume it's Z, so your path will be something like:

    "Z:\X-data\Rifke finance base\FoxyClasses\Global.vxc"

    Also notice the slashes in Windows are different.
     
  3. HansPL

    HansPL Bit poster

    Messages:
    8
    Thank you, special Specimen!

    Hans L
     
  4. HansPL

    HansPL Bit poster

    Messages:
    8
    I checked in Windows Explorer, and found "Network Location. Home on 'psf' (Y:), so I changed my code (incl. slashes) to

    "Y\/X-data\Rifke finance base\FoxyClasses\Global.vxc"

    This resulted in the following error:

    '\\...\Rifke finance base\Y\/X-data\Rifke finance base\FoxyClasses\Global.vxc' does not exist.

    Let me mention, should that be relevant, that my code is called from the following file (that I have as a shortcut in the Dock; file side, to the right of the vertical line) that I run:

    X-data > Rifke finance base > accmain.fxp

    Very grateful for any tip about what I should do.

    Hans L
     
  5. Specimen

    Specimen Product Expert

    Messages:
    3,236
    Why "Y\/X..."?
    My example is clear, it should be "Y:\X..."
     
  6. HansPL

    HansPL Bit poster

    Messages:
    8
    Your example was, indeed, clear, but my vision is not. I simply missed the colon, almost again as I now stared at your post. Ah, need new glasses. Will try again, and I am sure it will now work.

    Hans L
     
  7. Specimen

    Specimen Product Expert

    Messages:
    3,236
    I'm sorry, I didn't mean to sound rude. Hope it works this time.
     
  8. HansPL

    HansPL Bit poster

    Messages:
    8
    It worked. Thank you, Specimen!

    Hans L
     
  9. ReginaT

    ReginaT Bit poster

    Messages:
    2
    I need some help. I've downloaded a trial version of Parallels to see if I can run Visual FoxPro on my Mac. Our office has a Microsoft FoxPro Database running on a Windows 2008 Server. I've successfully opened Parallels and connected to our network server. But when I run the VFP program, I get an error message "Error initializing Application object". PC users in our office have no trouble using FoxPro. I would like to purchase Parallels if I can get it to run FoxPro on my Mac.
     
  10. ReginaT

    ReginaT Bit poster

    Messages:
    2
    A chat with tech support says this is a path error. Our Visual FoxPro app is in P:\APPS\VFP\VFP\VFP.EXE (this is specified in my Shortcut "Target" field)
    Our database files are in P:\cis\cisv (this is specified in my Shortcut "Start In" properties field)
    Any ideas what the problem is?
     
  11. bhanup

    bhanup Bit poster

    Messages:
    1

Share This Page