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/> ~