you will have to manually do a replace of "\\" by "/"
sushil ronghe wrote:
>
> >
> > I have no experience on this exact situation, but I would try to use
> > double quotes around the path and filename. Something like
> >
> > viewer.script('pmesh me "' + str + '"');
> >
> > (and make sure to insert a space after "me")
> >
>
> Oh! great it works.
>
>
> OOPs the code
> viewer.script("pmesh me \""+file.getAbsolutePath() + "\"");
> works fine on linux but it is giving the error on windows.
> file not found.
>
> suppose the file location is D:\myWork\files\MESHDATA.txt
> then the error message => file not found: D:myWorkfilesMESHDATA.txt
>
> please help!
>
>
>
>
> ********************************
> sushil ronghe
> *********************************
>
>------------------------------------------------------------------------
>
>-------------------------------------------------------------------------
>This SF.net email is sponsored by: Splunk Inc.
>Still grepping through log files to find problems? Stop.
>Now Search log events and configuration files using AJAX and a browser.
>Download your FREE copy of Splunk now >> http://get.splunk.com/
>
>------------------------------------------------------------------------
>
>_______________________________________________
>Jmol-users mailing list
>[email protected]
>https://lists.sourceforge.net/lists/listinfo/jmol-users
>
>
--
Robert M. Hanson
Professor of Chemistry
St. Olaf College
Northfield, MN
http://www.stolaf.edu/people/hansonr
If nature does not answer first what we want,
it is better to take what answer we get.
-- Josiah Willard Gibbs, Lecture XXX, Monday, February 5, 1900
-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems? Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
Jmol-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jmol-users