Yes, I do. But I recommend instead that you do what Microsoft has done to reduce some of the service proliferation (and there are still too many darn services if you ask me).
Use schtasks and schedule the batch file to run every 15 minutes. It's really that simple. That's what I do. Almost all of the "general purpose" RKTools and Support Tools are now part of win2008 and 2008 r2. The only one I really miss is "netdiag". RIP. Regards, Michael B. Smith Consultant and Exchange MVP http://TheEssentialExchange.com -----Original Message----- From: mb [mailto:[email protected]] Sent: Wednesday, May 26, 2010 4:52 PM To: NT System Admin Issues Subject: Running a batch file as a service, 2K8 R2 In the Windows Server 2003 resource kit, there was a utility named autoexnt.exe that allowed you to run a batch file as a service. We have one 2K3 server that we need to retire & replace with a 2K8 machine, and I need to move this service. The 2K8 R2 resource kit includes six books, zero tools. It does, however, have a "Companion CD", and off that CD's menu you'll see "Tools". Included in the "Tools" menu is "Windows Server 2003 Resource Kit Tools", and that link takes you to a Microsoft webpage listing the tools included in the 2K3 RK, and verbiage saying that the supported OS's are Server 2K3 & XP, and that these tools are not supported on 64-bit platforms. Not sure what business that has being a link from a 2K8 R2 RK. An alternative would be to run the script in a disconnected RDP session, but that's a little cumbersome and a bit risky. (the task is fairly simple - check a folder every 15 minutes, if there are any files in it, FTP them to a destination and then move them to an archive folder) I've been searching Microsoft's KB, found a link to an executable named sc.exe, "To remotely create and start a service from the command line, you can use the SC tool (Sc.exe) included in the Resource Kit." (It's not included in the resource kit, there are no tools in the resource kit... but it is included in a standard 2K8 R2 build...) It appears that this will create a service out of an executable, which leaves me to find a way to convert a batch to an exe, which I've seen before & can likely find. Question to the group is - do you know of a way to run a batch file as a service on 2K8 R2? ~ Finally, powerful endpoint security that ISN'T a resource hog! ~ ~ <http://www.sunbeltsoftware.com/Business/VIPRE-Enterprise/> ~ ~ Finally, powerful endpoint security that ISN'T a resource hog! ~ ~ <http://www.sunbeltsoftware.com/Business/VIPRE-Enterprise/> ~
