Re: VB6 Service can't run .bat file

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance



BTW, I can make this work by calling the executables directly in each line of the .bat file. But I would really like to know how to run a .bat file from a service in case I ever need to do it again.

Thanks for all your help on this... User rights and privileges always kick my butt! ;-)

sr

"Steve Ricketts" <velocedge@xxxxxxxxxxx> wrote in message news:uBAkxXcgKHA.1540@xxxxxxxxxxxxxxxxxxxxxxx
I need to make a modification to a service written in VB6 that modifies and then executes a .bat file. This runs fine when it's run from the command line, but when I start it as a service, it creates the .bat file but doesn't run it. I'm sure there's some sort of a permissions issue with the account the service is running under but I've tried the local system account as well as the administrator's account and there is no difference.

Can someone tell me what I need to do in order to run a .bat file from a service?

Thanks,

Steve

.



Relevant Pages

  • Re: Scheduled Tasks result - 0x1
    ... I have created a BAT file which is supposed to automatically connect to ... than to always manually run this BAT file, I am then using windows XP ... scheduler to run this BAT file daily at a given time. ... Administrator account and change the password, ...
    (microsoft.public.windowsxp.help_and_support)
  • Re: Robocopy Security and Authorization
    ... It appears that the problem is access to run the bat file itself. ... Robocopy doesn't even generate its log file. ... I also gave the RobocopyUser full rights to the BAT file, ... I noticed that the AT servce acct is the 'System' account. ...
    (microsoft.public.windows.server.general)
  • Windows Service-Log on as Option
    ... I have to launch a service which calls a bat file that has got ... error (however it works fine when i execute the bat file alone).So I ... However If I log in as a different user (say a limited account user) ...
    (microsoft.public.dotnet.general)
  • Xserve mapped folders on XP Clients
    ... Create a .bat file and include the following: ... >of the artwork on the Xserve to allow PC users to view it ... >PC's only if I use the admin account on the xserve. ...
    (microsoft.public.win2000.macintosh)
  • Re: Client software installation account problem
    ... Thank you for posting and thank Seeker very much for his great answer. ... When the option to use the Windows NT client Software Installation account ... The Bat file will look something like: ... @echo off ...
    (microsoft.public.sms.admin)