I have written the following code in vfp9. The code is supposed to run the Google Account Manager (gam) to create a file of current gmail accounts. This works fine when run from the desktop but, It won't work when using the task scheduler. It never executes the .run instruction (according to the task manager). Any help would be appreciated.
lcCmd = Getenv("ComSpec") + [ /C ] && There is a space before and after the ‘/C’
lcCmd=lcCmd+[c:\gam\gam.exe print users allfields > C:\gam\GamData\allusers.csv]