PDA

View Full Version : network problem


xenry
11-28-2006, 05:26 PM
Hi, guys

is there special way to create a file on a network place ?
This code works fine when I browse to a local path but fails with network paths:


path = getSaveFileName caption:"save" types:"text files (*.txt) |*.txt"

if path != undefined do
(
file = createFile (ConvertPaths path)
)


where 'ConvertPaths' is:


fn ConvertPaths input_path =
(
local mod_path = ""

if input_path != undefined then
(
for i = 1 to input_path.count do
(
if input_path[i] == "\\" then mod_path = mod_path + "\\\\"
else mod_path = mod_path + input_path[i]
)
)

mod_path
)


this is the error:


>> MAXScript Rollout Handler Exception: -- Runtime error: FileStream cannot create: \\\\File-server\\public\\lll.txt <<

mustan9
11-28-2006, 07:54 PM
Try forward slashs. "/" and you won't have to repeat them.

example: //machine/folder/folder/folder/file.txt

xenry
11-29-2006, 10:19 AM
thanks man

CGTalk Moderation
11-29-2006, 10:19 AM
This thread has been automatically closed as it remained inactive for 12 months. If you wish to continue the discussion, please create a new thread in the appropriate forum.