||Re: unable to execute dos
||Mon, 26 Sep 2022 17:21:04 -0400
Hi Andy... The app works in cmd windows if I type 'run thumbs'. I get the error message if I try to do the same thing in dbase command. So not working in dbase at all.
I am not sure if thumbs is dos although maybe. It is a very old windows program possibly. But the same thing happens no matter what app I try to run in dbase.
When I tested with the msgbox the directory that came back was dbasewin which is my dbase directory.
Tomorrow when I get to work I am going to compare paths in environment. Long time ago I was having problems with perl and might have accidently deleted some paths that had been there. This could have been broken a long time as I don't remember using any 'run' commands for a while on this laptop. I use them every day on my work computer.
Andy Taylor Wrote:
> Hi Charlie,
> Yes, much clearer thanks. Is Thumbs.exe a DOS program?
> I don't think you meant to say "command prompt in windows" because run
> is not a valid command when using windows cmd.exe.
> If the program works when you enter "run thumbs" in the dBASE command
> window but not when you use the form menu or a pushbutton then is it
> possible that thumbs.exe is in the same folder as you are running the
> dBASE command window but when the form or menu is running you have a
> different folder in view with potentially different permissions?
> Try the following to check this:
> function MENU124_onClick()
> Run thumbs.exe
> > Hi Andy... Thanks for your reply.
> > The subject error message is in the subject of this post. (unable to execute dos).
> > [function MENU124_onClick()
> > Run thumbs.exe
> > return]
> > This is an example of the very simple code that works on other computers. For some reason it does not work on my laptop in dbase which indicates it is a problem on this computer, not with code that I have written.
> > It does work in the command prompt in windows if you type in ' run thumbs'. So I am trying to figure out why it does not work in a menu in dbase or a pushbutton on this specific computer, but does work in the same menu or pushbutton in dbase on other computers?
> > I have gone into paths in windows environment and tried to work with that with no positive results. I am wondering if possibly something in dbase desktop properties could fix this but not sure.
> > I am just reaching out to see if anyone has run into this before and if they know of a solution.
> > Hope this gives a clearer picture.
> > Andy Taylor Wrote:
> >> Hi Charlie,
> >> You do persist in thinking that we're mind readers :-)
> >> The crucial bits missing from your question are:
> >> 1. No code so we can see what command you're using.
> >> 2. What is the "subject error" message?
> >> Andy
> >>> I didn't realize this until now but I can't run apps on dbase using the run command. This is happening on this computer only. I get the subject error message. Works fine on other computers. Any ideas how to fix this?