SoftTree Technologies SoftTree Technologies
Technical Support Forums
RegisterSearchFAQMemberlistUsergroupsLog in
DirCreate statement error

 
Reply to topic    SoftTree Technologies Forum Index » 24x7 Scheduler, Event Server, Automation Suite View previous topic
View next topic
DirCreate statement error
Author Message
Greg Johnson



Joined: 20 Oct 2001
Posts: 26

Post DirCreate statement error Reply with quote

This statement worked as of version 3.3.8 and started getting errors as of version 3.4.0

DirCreate ( "\\\\RemoteServer\\c$\\NewDirectory" )

The error message is:
Unable to create directory "". Error:53 The network path was not found.

As of version 3.4.0 this only errors using a UNC name to a remote machine. The statement seems to work correctly on a local machine.


Tue Jul 15, 2003 10:30 am View user's profile Send private message
SysOp
Site Admin


Joined: 26 Nov 2006
Posts: 7966

Post Re: DirCreate statement error Reply with quote

I do not think it is a problem with DirCreate.

Please enable the trace option and re-run your script. Let us know what you in the trace.

: This statement worked as of version 3.3.8 and started getting errors as of
: version 3.4.0

: DirCreate ( "\\\\RemoteServer\\c$\\NewDirectory" )

: The error message is: Unable to create directory "". Error:53 The
: network path was not found.

: As of version 3.4.0 this only errors using a UNC name to a remote machine.
: The statement seems to work correctly on a local machine.

Tue Jul 15, 2003 12:15 pm View user's profile Send private message
Greg Johnson



Joined: 20 Oct 2001
Posts: 26

Post Re: DirCreate statement error Reply with quote

Here is the trace output.

1: DIM
1: Executing DIM("DIRFOUND", "BOOLEAN")
2: DIREXISTS
2: Executing DIREXISTS("\\spgr3sql\d$", "false")

Return "true"
4: DIRCREATE
4: Executing DIRCREATE("\\spgr3sql\d$\new_dir")

: I do not think it is a problem with DirCreate.

: Please enable the trace option and re-run your script. Let us know what you
: in the trace.

Tue Jul 15, 2003 2:00 pm View user's profile Send private message
SysOp
Site Admin


Joined: 26 Nov 2006
Posts: 7966

Post Re: DirCreate statement error Reply with quote

Here is what I found out. In one of the 3.4.x versions there was a change in directory management functions that enabled directories to be created recursively, for example
if you call DirCreate( "c:\data\new_dir1\new_dir2\new_dir3") 24x7 would create new_dir1, new_dir2 and new_dir3 recursively. For every element of the tree it checks whether that element already exists and if not it then creates it.

In case of UNC directory names it fails parsing the tree as it attempts to use the first 2 back-slashes as directory tree separators rather then as a UNC prefix. This needs to be fixed.

: Here is the trace output.

: 1: DIM
: 1: Executing DIM("DIRFOUND", "BOOLEAN")
: 2: DIREXISTS
: 2: Executing DIREXISTS("\\spgr3sql\d$", "false")

: Return "true"
: 4: DIRCREATE
: 4: Executing DIRCREATE("\\spgr3sql\d$\new_dir")

Tue Jul 15, 2003 3:00 pm View user's profile Send private message
Greg Johnson



Joined: 20 Oct 2001
Posts: 26

Post Re: DirCreate statement error Reply with quote

Please advise when this might be corrected. I have a large number of production scripts that are failing on a periodic basis.

: Here is what I found out. In one of the 3.4.x versions there was a change in
: directory management functions that enabled directories to be created
: recursively, for example
: if you call DirCreate( "c:\data\new_dir1\new_dir2\new_dir3") 24x7
: would create new_dir1, new_dir2 and new_dir3 recursively. For every
: element of the tree it checks whether that element already exists and if
: not it then creates it.

: In case of UNC directory names it fails parsing the tree as it attempts to
: use the first 2 back-slashes as directory tree separators rather then as a
: UNC prefix. This needs to be fixed.

Thu Jul 17, 2003 10:11 am View user's profile Send private message
SysOp
Site Admin


Joined: 26 Nov 2006
Posts: 7966

Post Re: DirCreate statement error Reply with quote

Today. Please wait for 3.4.11 to be setup for download.

: Please advise when this might be corrected. I have a large number of
: production scripts that are failing on a periodic basis.

Thu Jul 17, 2003 11:19 am View user's profile Send private message
Display posts from previous:    
Reply to topic    SoftTree Technologies Forum Index » 24x7 Scheduler, Event Server, Automation Suite All times are GMT - 4 Hours
Page 1 of 1

 
Jump to: 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


 

 

Powered by phpBB © 2001, 2005 phpBB Group
Design by Freestyle XL / Flowers Online.