Categories

Vista Clues provides Windows Vista help, tips, downloads, and news. If you have a question or tip for Tony, send me an e-mail at qa@vistaclues.com

Site search

Main menu:

Archive

Reader Question: Running an old FoxPro exe file in vista that is invoked with a Batch file to allow printing on a USB port printer

Question:

Hi,
I tried to load a FoxPro for DOS exe file into vista that has been running quite well on a XP machine for some time.   Since I will now be using a  USB printer  (epson stylus photo rx580)  I need to run a batch file to initiate  “net use LPT1 \\<computer name>\ <printer name> then place the batch file on the desktop (the batch file will invoke my foxpro exe file also).  Will I each time I want to run the batch file have to right click it and then click <run as administor> ?
On just running the exe file  it loaded a foxuser.dbf file on the desktop each time. Is this normal and can I prevent this?

Answer:

Hiya, Jack.

You can configure a batch file to always run as an administrator (after a UAC prompt, of course) by creating a shortcut to it and then configuring that shortcut to run as an administrator, as I described in the article “Always Run A Batch File As An Administrator”.

FoxPro is creating the FoxUser.dbf file on your desktop because it automatically uses the current directory. Because you’re running it from the desktop, that’s where it’s saving the user settings file. If I were you, I’d just move the batch file to a different directory (say, “C:\Program Files\FoxPro\”), and then create a shortcut to the batch file on the desktop–that should fix the problem. Or, you could just ignore the FoxUser.dbf file.

For more information, read the Windows Vista Resource Kit (co-authored by your very own Tony Northrup). Got a question for Tony? Send an e-mail to qa@vistaclues.com.

del.icio.us:Reader Question: Running an old FoxPro exe file in vista that is invoked with a Batch file to allow printing on a USB port printer digg:Reader Question: Running an old FoxPro exe file in vista that is invoked with a Batch file to allow printing on a USB port printer spurl:Reader Question: Running an old FoxPro exe file in vista that is invoked with a Batch file to allow printing on a USB port printer furl:Reader Question: Running an old FoxPro exe file in vista that is invoked with a Batch file to allow printing on a USB port printer fark:Reader Question: Running an old FoxPro exe file in vista that is invoked with a Batch file to allow printing on a USB port printer blogmarks:Reader Question: Running an old FoxPro exe file in vista that is invoked with a Batch file to allow printing on a USB port printer Y!:Reader Question: Running an old FoxPro exe file in vista that is invoked with a Batch file to allow printing on a USB port printer magnolia:Reader Question: Running an old FoxPro exe file in vista that is invoked with a Batch file to allow printing on a USB port printer

Write a comment