cancel
Showing results for 
Search instead for 
Did you mean: 

Check File Existence in a WD app fails with remote machines

laurent_chavanis
Explorer
0 Kudos

Hello,

I try to test file existence from a WD application (6.45) :

new File("c:\tmptest.txt").exists()

--> works fine

new File("\\ncedxxxtmptest.txt").exists()

--> works fine (
ncedxxx is my local machine)

new File("\\ncedyyytmptest.txt").exists()

--> <b>always return false</b> (
ncedyyy is a colleague machine in Nizza)

new File("\\dwdf048\CHARM\OTS\FileTransfer\ment.txt").exists()

--><b> always return false</b> (
dwdf048 is a remote server in wdf)

Any idea ? Is there a configuration in VisualAdmin to enable me to access such remote machines ?

I tested the same code snippet in a java main and that works... problem seems to occur with WebAS... or ?

Best regards,

Laurent

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi Laurent,

Give the shared folder in Remote machine full control(in Permissions) and check again

Regards

Fahad Hamsa

Former Member
0 Kudos

Hi,

Is the WebAS installed on your machine or on a different machine? If its on a different machine, may be that machine is not able to ping the said locations. When tried from a java main, you are testing from your local machine which is able to ping those machines.

Hope it helps,

Regards,

Rajit S

laurent_chavanis
Explorer
0 Kudos

Hi,

WebAS is installed on my local machine...

Cheers,

Laurent