greasedman
19th July 2005, 15:30
I must create with mkdir() a folder on a host different by the baan server but in the same (MS)network with remote hostname = xxx and path = "yyy/zzz".
Windows server is running on both hosts.
I tried with:
mkdir(xxx\yyy\zzz) and it gave me 1
users manual says:
mkdir( "host1!/usr/mydir" )
Return values:
1 success
0 path already exists (only returned when creating a local directory)
-1 failure; probably no permission
But the directory doesn't exists in that path... :confused: :confused: :confused:
If I run it again it gave me 0, as it was able to create it the first time...
As explained in the manual for rm.dir() I tried also with mkdir( "xxx!/yyy/zzz" ) and mkdir("xxx!c:\yyy\zzz"), but ret is always -1... :(
I should have no problem about authorizations :cool:
bdittmar
19th July 2005, 18:01
I must create with mkdir() a folder on a host different by the baan server but in the same (MS)network with remote hostname = xxx and path = "yyy/zzz".
Windows server is running on both hosts.
I tried with:
mkdir(xxx\yyy\zzz) and it gave me 1
users manual says:
mkdir( "host1!/usr/mydir" )
Return values:
1 success
0 path already exists (only returned when creating a local directory)
-1 failure; probably no permission
But the directory doesn't exists in that path... :confused: :confused: :confused:
If I run it again it gave me 0, as it was able to create it the first time...
As explained in the manual for rm.dir() I tried also with mkdir( "xxx!/yyy/zzz" ) and mkdir("xxx!c:\yyy\zzz"), but ret is always -1... :(
I should have no problem about authorizations :cool:
It's a shell command for UNIX OS !
Description
This creates a specified directory (local or remote). You must have write permission in the parent directory to do this. Access permissions for the new directory are set to read, write, and execute for all users. The path_name$ argument must include the full path to the directory, including the host name, where appropriate. For example:
mkdir( "host1!/usr/mydir" )
Return values
1 Success.
0 Operating system error code.
-1 Error; Probably no permission.
Context
Bshell function.
Regards
greasedman
20th July 2005, 09:29
I solved my problem in 2 ways:
1- creating a file .cmd with command inside, moving it on client and running it with app_start
2- app_start("cmd /c mkdir " & "\\xxx\yyy\zzz", "", "", "", "")
There's no working baan function to create remote folders?!?
ANYWAY I'd like to know why the hell mkdir() gave me those return values: 1 (success) for the first time and 0 (folder already exists) the following times...
thanks bdittmar
JaapJD
20th July 2005, 09:52
ANYWAY I'd like to know why the hell mkdir() gave me those return values: 1 (success) for the first time and 0 (folder already exists) the following times...
The first time the directory is probably created as a sub-directory in your home directory on the local server. The second time it is already there. I don't know exactly what the home directory will be if Baan runs on a Windows machine. If you search for "xxx", you will find it somewhere.
greasedman
20th July 2005, 09:56
If you search for "xxx", you will find it somewhere.
I did this check yet, but I didn't find it, both on my pc and on baan server! :eek: