Thursday, February 09, 2012 Register  Login
Acces to output directory
Last Post 27 Jul 2009 04:12 PM byweiseone. 11 Replies.
Printer Friendly
Sort:
PrevPrev NextNext
You are not authorized to post a reply.
AuthorMessages
R1MUser is Offline
New Member
New Member
Send Private Message
Posts:3

--
03 Jun 2009 12:01 PM  

Hello,

using the program with this command I get an error:

U:\Produits\LogInfo>TextFileSplitter -i=U:\Produits\LogInfo\U53\LogInfos_2008051
8.txt -o=d:\ -h -kbs=10000

====

System.rEflection.targetInvocationException: eception was generated --> System.UnauthorizedAccessException: acces to directory 'd:\' not allowed

in System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
....
====

I attach screen copy error box.

Version 1.5.0 with XPPro SP3

Problem is similar with any target directory.

It seems to be OK with GUI but I need command line control to integrate that in my personnal application. Is it possible to know the commande line used by GUI?

Regards


TextFileSplitterError.jpg

HectorUser is Offline
Grand Widget Maker
Basic Member
Basic Member
Send Private Message
Posts:178

--
14 Jun 2009 07:58 PM  
R1m,

Sorry it took so long to answer. I've been dealing with a very bad cough.

That looks like a rights/permission issue with d:\. Both the GUI and the command-line call the same code. My guess would be some sort of security in your local network. I noticed that you are running the program from U:\. That would cause all sorts of problems when you try to do something like at in a business network. I always try to run utilities from one of the machine's local drive.


weiseoneUser is Offline
New Member
New Member
Send Private Message
Posts:3

--
25 Jun 2009 07:06 PM  
I am having the same problem - same Exception. GUI works fine. Command line says unauthorized access to the 'write to' folder no matter what it is. Running from local drive.


HectorUser is Offline
Grand Widget Maker
Basic Member
Basic Member
Send Private Message
Posts:178

--
27 Jun 2009 08:07 AM  
Guys,

I haven't been able to reproduce this. I've tested it with mapped drives to my 3 servers and still haven't been able to make this fail.

By chance, is any of you have your mapped drives into a Windows 2008 Server?


R1MUser is Offline
New Member
New Member
Send Private Message
Posts:3

--
11 Jul 2009 05:52 PM  

problem is the same with D:/ as target drive

I think that network drive are on a linux server, with Samba (to be confitmed). I have rwx rights in this directory and GUI doesn't generate error with same path.

May be a wrong management of / or \, simple ou double?

what happens if -o parameter is not mentionned? is it possible to consider source directory (-i) as default one?

 

New element, if I had list at the end of -o parameter (-o=U:/Produits/LogInfo/U53/list) I get a new error:

'Impossible to find file  U:\Produits\LogInfo\U53\list\xxxxxxxxxx.txt' where xxxxxxxxx is the first line of -i file...

 

 



HectorUser is Offline
Grand Widget Maker
Basic Member
Basic Member
Send Private Message
Posts:178

--
11 Jul 2009 06:05 PM  
R1M,

Thanks for the update. That gives me something to work with. I'll check the path management code, and will see if I can push out an update soon.


R1MUser is Offline
New Member
New Member
Send Private Message
Posts:3

--
11 Jul 2009 06:12 PM  

ok, I hope you'll be able to push out an update in a few days, it would help me in my operations.

the problem is located in output directory, not input one. Now I've tested the command line:

U:\Produits\LogInfo\TextFileSplitter -i=U:/Produits/LogInfo/U53/LogInfos_200
90617_am.txt -o=D:/ -h -ls=1000 -regex:^\[ -boundaryasfilename

and got the same error message.

As it runs with GUI, it may be useful to extract somewhere (in a file text?) the command matching settings?



HectorUser is Offline
Grand Widget Maker
Basic Member
Basic Member
Send Private Message
Posts:178

--
13 Jul 2009 05:06 AM  

R1M,

I just attached a build that should take care of the command-line issues you are having. I changed the code so that it is using native .NET functions to deal with directory handling instead of manually doing it.

Could you please download the attached update and test it? I will release it to the public if it fixes your issue.

Regards,

Hector


TextFileSplitter_1.5.1_Test.zip

weiseoneUser is Offline
New Member
New Member
Send Private Message
Posts:3

--
21 Jul 2009 03:32 PM  

I tried the new version and get the same error. I even put the batch file and the test file in the same directory with the .exe, so everything is running on C:. I have attached my error.

 

 

 


error.bmp

HectorUser is Offline
Grand Widget Maker
Basic Member
Basic Member
Send Private Message
Posts:178

--
21 Jul 2009 04:31 PM  
weiseone,

Thanks for testing the update I attached earlier. The error you posted is exactly the same as R1M. The error is that the program does not have access to write to the output directory. At this point, I'm baffled, as both the GUI and command-line call the same code to write to the output directory. This might be one of those Heisenbugs (strange and/or weird errors that are had to trace) that I've heard about, but never experienced before.

Anyways, I'll keep looking and asking about this in my programming community. I'll post again, the moment I find something.


HectorUser is Offline
Grand Widget Maker
Basic Member
Basic Member
Send Private Message
Posts:178

--
22 Jul 2009 07:25 AM  

I was finally able to reproduce the error. Once that happened, I was able to find and fix this problem. I'm attaching a new test version for everybody to try.


TextFileSplitter_1.5.1_Test2.zip

weiseoneUser is Offline
New Member
New Member
Send Private Message
Posts:3

--
27 Jul 2009 04:12 PM  
It works!!!! Thank you a ton!!!!


You are not authorized to post a reply.

Active Forums 4.2
Terms Of Use | Privacy Statement | SystemWidgets
Copyright 2002-2012 by SystemWidgets
Google Analytics Alternative