If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Data Access, Manipulation & Batch Languages > Delphi, C etc > WinNT Service

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 01-17-03, 02:05
AbhijitRoy AbhijitRoy is offline
Registered User
 
Join Date: Jan 2003
Posts: 4
Post WinNT Service

Hi,

I have an requirement to automate some acction whereby I require to move files (auto-generated) from 1 given directory to some directory. I designed an application and used 'FileCopy' to move files from one directory to another (both local and network drive) and was working fine.

This utility was running on server and being an application if anybody logout from the server the application gets terminated.

To avoid this sceniro I planned to convert it as a NT service. I converted it as a service and it is working fine with local drives, moving to network drives/mapped driveshave stopped working.

Please help if anybody of you know the answer.

OS: WinNT
Developed Using VB 6.0
Reply With Quote
  #2 (permalink)  
Old 01-21-03, 15:17
Ad Dieleman Ad Dieleman is offline
Registered User
 
Join Date: Jan 2003
Location: Dordrecht, The Netherlands
Posts: 95
Re: WinNT Service

I wouldn't know how to do this in VB6. In VB.NET you can develop services in VB or C#.

Ad Dieleman.
Reply With Quote
  #3 (permalink)  
Old 01-23-03, 01:25
playernovis playernovis is offline
Registered User
 
Join Date: Nov 2002
Location: San Francisco
Posts: 251
Isn't this because when you are not logged in, you have no mapping? Did you try UNC instead of mapped drive?

\\myserver\myfolder instead of R:


also check how is the service started.... LOG ON as .... if you are not logged in, you cannot access network drive... try to use admin name and password for that service (control panel - services under your service pick tab LOG ON)


jiri
Reply With Quote
  #4 (permalink)  
Old 02-02-04, 09:10
tlorsung tlorsung is offline
Registered User
 
Join Date: Feb 2004
Posts: 1
I'm doing the same thing, I have a Windows Service and using UNC working, now my next issue is an UNC that needs a different domain/Userid and password. insort-copy a file from 1 server with one user id/password to another server with different user ID/password. Admin from 2 sites don't want to use common IDs. Any ideas or key words to look up would be cool!
tjl
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On