Windows Server 2003 - Windows Service runs batch file


DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 3 of 3

Thread: Windows Server 2003 - Windows Service runs batch file

Hybrid View

  1. #1
    Join Date
    Aug 2005
    Posts
    1

    Cool Windows Server 2003 - Windows Service runs batch file

    I developed Win Service for creation and running batch file (.NET - VS 2003).
    Than batch file runs Putty’s family utility pscp.exe for remote file copy (Linux -> Windows)

    Everything is working fine on XP machine, but not on WS2003 (Windows Server 2003).

    Task Manager shows running cmd.exe and pscp.exe processes, but no files are copied.



    Prerequisites:
    - Logon as Administrator
    - Cmd.exe has all permissions
    - Windows Service is running under Administrator account, and I even used Impersonation for this service
    - I tried to run this Service under various accounts too giving all possible permissions.
    - Windows Service was tested with and without “Allow service to interact with desktop” option
    - I run it under “Local System account” and Network as well.



    Standalone batch file runs perfect on WS2003 – no problems, everything is copied as expected.
    No problems when this batch file is started from Windows Application.


    No Error events in any of three Event Log files.

    Strangely “Allow service to interact with desktop” option does not show “Command Line Window“ although cmd.exe is running as a hidden window!!!


    Do you have any idea, gurus?

  2. #2
    Join Date
    Sep 2008
    Posts
    1
    Hi,

    I have exactly same problem.
    Please H E L P !!!!!

    Yael

  3. #3
    Join Date
    Apr 2007
    Location
    Sterling Heights, Michigan
    Posts
    8,666
    Welcome to DevX

    Have a look here.
    I don't answer coding questions via PM or Email. Please post a thread in the appropriate forum section.
    Please use [Code]your code goes in here[/Code] tags when posting code.
    Before posting your question, did you look here?
    Got a question on Linux? Visit our Linux sister site.
    Modifications Required For VB6 Apps To Work On Vista

Similar Threads

  1. Replies: 12
    Last Post: 08-16-2005, 11:17 AM
  2. how to mount a virtual file, folder or drive in windows.
    By Arafat Salman in forum VB Classic
    Replies: 0
    Last Post: 12-15-2001, 05:27 AM
  3. accessing a file on another server
    By Bernie in forum Web
    Replies: 0
    Last Post: 04-16-2001, 10:28 PM
  4. FTP Server: file access problems
    By Bernhard Sillipp in forum Web
    Replies: 0
    Last Post: 09-22-2000, 08:49 AM
  5. Replies: 7
    Last Post: 09-15-2000, 09:44 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center
 
 
FAQ
Latest Articles
Java
.NET
XML
Database
Enterprise
Questions? Contact us.
C++
Web Development
Wireless
Latest Tips
Open Source


   Development Centers

   -- Android Development Center
   -- Cloud Development Project Center
   -- HTML5 Development Center
   -- Windows Mobile Development Center