Hi Tariq,
No, as far as I know. I think you must run your exe as a service. BTW, have you tried to add C:\watch\watch into autoexec.bat? May work on WIN98 machines.
>Dear Sir,
>
>I am using VFP6 on Windows98 plateform. I copy my software's exe file to start menu by using these commands
>*------------------
>CLEAR
>SET DEFAULT TO C:\WATCH
>
>DECLARE LONG CopyFile IN WIN32API STRING lpExistingFileName, STRING lpNewFileName, LONG bFailIfExists
>IF COPYFILE("c:\watch\watch.exe", "C:\WINDOWS\Start Menu\Programs\StartUp\watch.exe", 1) = 1
>ENDIF
>*------------------
>When windows startup this exe file runs correctly but, on that time, if a user holds own SHIFT key then watch.exe does not start. Windows by-pass it.
>
>Is there any method to restrict shift key function on windows startup.
>
>I want this exe to run with every startup session of Windows.
>
>Please help