In my config file i have source path and destination path...
i am using these paths in my windows service to rename files...
if i use the map drives then it works but when i use 90.xxx.xxx.xx\somepath then it doesnt work.
Note i have tried to change user account to the accout that has access to the above path...
Need assistance to create a log file so i would now what error is happening and how do i resolve this. below is my config file and code from windows service to rename the destination files
<!-- <add key="FilesPath" value="C:\DestinationFolder\" /> --> works great with drives specified
<add key="FilesPath" value="\\90.xxx.xxx.xx\q$\SourceFiles\" />
WINDOWS SERIVICE. (in short)
strfilesPath = ConfigurationSettings.AppSettings.Get("FilesPath")
stroldfilename = (here i get the file name i want to rename)
strNewFilename = stroldfilename + ".dat"
Rename(strfilesPath + stroldFileName, strfilesPath + newFileName)
dont knwo why it is not working when i use ip addres in my config file... can you tell me how to trap the error so i would atleat knwo it is because of the ip address i am entering or there is some problem in the service.
Note: service works file if i use Mapped drive letter