||Re: unable to execute dos
||Sun, 02 Oct 2022 15:28:51 -0400
Hi Andy... If I type 'run' in windows cmd it does not give me that error. It does nothing. Here is an example:
I did this in the root dir also with the same results.
If I type run thumbs, it runs thumbs.
I am using windows 10 also. I did the dir on .exe and nothing came up. I also did .bat but it found nothing.
> Hi Charlie,
> I've attached a picture of what happens when I type run into the windows
> DOS command window. Run is not a valid command in Windows 10 and I'm not
> sure it ever has been. What version of windows is on your laptop?
> Type ver in your DOS command window to find out...
> The only situation that I can think of in which "run thumbs" would work
> in the DOS command window is if you have a program called run.exe in the
> same folder and thumbs is used as the parameter.
> Please type dir *.exe into the DOS command window and tell us what exe
> files get listed.
> > 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()
> >> msgbox(set("directory"))
> >> Run thumbs.exe
> >> return
> >> Andy
> >>> 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?