Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How Do I Pass Parameters To a VFP Exe?
Message
From
01/10/1998 09:01:03
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Other
Title:
How Do I Pass Parameters To a VFP Exe?
Miscellaneous
Thread ID:
00142766
Message ID:
00142766
Views:
101
I have a VFP application that runs on our network and is used for time tracking purposes. My users have requested that the system logs them in automatically, instead of having them log in with the same userid and password several times a day (I suggested leaving the app running so they only have to do it once a day). I think this is a good idea and will save time. The way I see it, I have two options of how to go about this:

1) Get the user's ID and password off the network using a VFP function - does anyone know what it is?

2) Pass in the user's ID and password from the command line calling the executable (in the start in box of the properties for the shortcut) - does anyone know how to do this?

I think the second method is preferable because I would want to have the ability to login as an administrator on any one of the workstations. If I had the system read the ID and password off the workstation network login, I would lose this ability (unless I provided a "login as a different user" function like windows NT) but this seems like too much complexity for a relatively simple issue.

This is why I want to go with the second option - pass in the user ID and password as parameters from the startup command line, if possible. That way, if I want to log in as an administrator or different user on a workstation, I can simply change the start in command line in the properties of the shortcut on the desktop - a minimal effort.

Has anyone done this or know how I would go about it?

Much thanks for your help!

-JT
Jeff Trockman, MCP
Next
Reply
Map
View

Click here to load this message in the networking platform