Windows scripting of filepro startup files

Kenneth Brody kenbrody at spamcop.net
Fri Sep 18 06:47:49 PDT 2009


Reggie Freedman wrote:
> I'm having similar problems... not sure I have a final solution.... But some 
> ideas.....

Nothing personal, but I prefer to stay away from anything that's called a 
"final solution".

> Vista - I have a shortcut in the startup folder to a batch.bat file.... 
> Manually had to click the task tray icon and allow it to run. I renamed to 
> batch.cmd and seems to work now. batch.cmd also works in XP.
> 
> server 2008 - in Task Scheduler, batch.bat nor batch.cmd run nor shortcuts 
> to them... No error, no message, nothing. They show as running, but they are 
> not. I converted my batch.bat to batch.exe and added batch.exe as an 
> exception to windows' firewall (allows only programs to be exceptions, .exe, 
> etc., not name.bat or name.cmd). Point a shortcut to the batch.exe and the 
> batch.exe runs. Hope it stays working. I will post again in a few days.
[...]

I'd be very surprised if renaming a .bat file to .exe would let it work, as 
I would expect Windows to treat it as a 16-bit DOS .com file.

And, a quick test on my Vista box shows that the ".exe" file immediately 
crashes as it tried to treat the text as x86 machine code:

---------------------------
16 bit MS-DOS Subsystem
---------------------------
C:\Windows\system32\cmd.exe - __foo__
The NTVDM CPU has encountered an illegal instruction.
CS:123b IP:0101 OP:65 63 68 6f 20 Choose 'Close' to terminate the application.
---------------------------
Close   Ignore
---------------------------


-- 
Kenneth Brody


More information about the Filepro-list mailing list