system commands in UNC format?

  • Thread starter Thread starter Aurélien Queffurust
  • Start date Start date
A

Aurélien Queffurust

Bonjour,
Je cherche la note qui explique pourquoi Microsoft Windows n'autorise pas
d'executer des commandes sytèmes dans un chemin Universal Naming Convention
(UNC)


Hello,
Why does not Microsoft Windows allow system commands to be executed using a
directory in UNC format?

Thanks

Aurélien
 
It is a published technical note which says:

The ability to use the SYSTEM function to execute system commands on a UNC
directory is not available in MATLAB. This limitation is imposed by
Microsoft Windows. It does not allow system commands to be executed using a
directory in UNC format.

You may be able to work around this issue by mapping the UNC directory to a
network drive. To map a network drive in Windows, perform the following
steps:

1. Right-click on "My Computer" and select "Map network Drive...".
2. Select the drive letter you want to represent your network directory from
the "Drive" field.
3. Enter the UNC name in the "Folder" field.
%%%BEGIN PRE%%%
\\<my server>\<my directory>
%%%END PRE%%%
4. Click "Finish". At this point you may be asked for a user name and
password to log into the network directory.

Now change the MATLAB directory to the drive letter you selected in the
steps above, and retry the SYSTEM function call.
%%%BEGIN CODE%%%
cd <my selected drive> %for example cd z:\
system dir
%%%END CODE%%%
 
I have no idea what the System function is. When I type it on my WinXP
Professional machine, I get:

'system' is not recognized as an internal or external command,
operable program or batch file.
 
Back
Top