简体   繁体   English

使用Citric接收器时从命令行访问Matlab中的本地驱动器

[英]Accessing local drives in Matlab from command line when using Citric receiver

I am using Matlab 2018a within the Citrix receiver. 我正在Citrix Receiver中使用Matlab 2018a。 That means, I run the Citrix receiver and it runs Matlab on a server. 就是说,我运行Citrix接收器,它在服务器上运行Matlab。 From this Matlab instance, I can access my local drive, in fact if I click "open" then the window below appears, and I can open any file I want on my local pc. 从这个Matlab实例中,我可以访问本地驱动器,实际上,如果单击“打开”,则会出现下面的窗口,并且可以在本地PC上打开所需的任何文件。 But what if I want to access my local files from command line in my Matlab command window or in a Matlab scripts? 但是,如果我想从命令行在Matlab命令窗口或Matlab脚本中访问本地文件怎么办? I tried: 我试过了:

dos('cd \\ALBERTO-PC\C:')

I get: 我得到:

'\\ALBERTO-PC\C:' 
CMD does not support UNC paths as current directories. 

I tried 我试过了

dos('pushd  \\ALBERTO-PC\C:')

I get: 我得到:

The network name cannot be found. Other ideas?

在此处输入图片说明

尝试将UNC驱动器映射到本地驱动器,然后通过映射使用映射的驱动器

You can access you local C drive via explorer using what is called Client Drive Mapping. 您可以使用“客户端驱动器映射”通过资源管理器访问本地C驱动器。 You can access those via a UNC path as well as \\\\CLIENT\\C$ \\\\CLIENT\\D$ etc. Do not use the client's hostname but use the hardcoded CLIENT name. 您可以通过UNC路径以及\\\\CLIENT\\C$ \\\\CLIENT\\D$等访问这些文件。请勿使用客户端的主机名,而应使用硬编码的CLIENT名称。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM