comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » Re: using SPAWN to work with Windows NT network directories
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Switch to threaded view of this topic Create a new topic Submit Reply
Re: using SPAWN to work with Windows NT network directories [message #25244] Fri, 01 June 2001 16:25 Go to next message
Craig Markwardt is currently offline  Craig Markwardt
Messages: 1869
Registered: November 1996
Senior Member
differentiable@hotmail.com (Lucas Miller) writes:

> i'm trying to use spawn to create a directory on our Windows network
> server.
> i can do this locally with the following commands:
>
> IDL> cd, 'c:\temp'
> IDL> spawn, 'md mydirname'
>
> will make a directory 'c:\temp\mydirname'. When I try this across the
> network
> however, eg.,
>
> IDL> cd, '\\Devsrvr\Users\me\'
> IDL> spawn, 'md mydirname'

I've left my DOS experience way in the past, but I do remember that
"cd c:\temp" didn't necessarily put you on the C: drive, (or devsrvr,
or whatever). You may be making a mydirname directory somewhere else?

Can you specify the full path explicitly?

spawn, 'md \\Devsrvr\Users\me\mydirname'

Craig

--
------------------------------------------------------------ --------------
Craig B. Markwardt, Ph.D. EMAIL: craigmnet@cow.physics.wisc.edu
Astrophysics, IDL, Finance, Derivatives | Remove "net" for better response
------------------------------------------------------------ --------------
Re: using SPAWN to work with Windows NT network directories [message #25371 is a reply to message #25244] Mon, 04 June 2001 15:33 Go to previous message
m.hadfield is currently offline  m.hadfield
Messages: 36
Registered: April 2001
Member
From: "Craig Markwardt" <craigmnet@cow.physics.wisc.edu>
> differentiable@hotmail.com (Lucas Miller) writes:
>
>> i'm trying to use spawn to create a directory on our Windows network
>> server.
>> i can do this locally with the following commands:
>>
>> IDL> cd, 'c:\temp'
>> IDL> spawn, 'md mydirname'
>>
>> will make a directory 'c:\temp\mydirname'. When I try this across the
>> network
>> however, eg.,
>>
>> IDL> cd, '\\Devsrvr\Users\me\'
>> IDL> spawn, 'md mydirname'
>
> I've left my DOS experience way in the past, but I do remember that
> "cd c:\temp" didn't necessarily put you on the C: drive, (or devsrvr,
> or whatever). You may be making a mydirname directory somewhere else?
>
> Can you specify the full path explicitly?
>
> spawn, 'md \\Devsrvr\Users\me\mydirname'

The problem is that the working directory for a Windows CMD shell cannot be
a UNC name, i.e.

cd, '\\Devsrvr\Users\me\'

doesn't work (and if you try it in an interactive shell it will tell you
so). So you could specify the full path explicitly, as Craig suggests, or
you could map \\Devsrvr\Users\me to a drive letter. (BTW, I find that using
UNC names for network drives can slow Windows NT down horribly, so they're
best avoided.)

As to *why* the CMD shell cannot use a UNC working directory, I have no
idea. Nor can I recall right now why I haven't switched to Linux yet.

---
Mark Hadfield
m.hadfield@niwa.cri.nz http://katipo.niwa.cri.nz/~hadfield
National Institute for Water and Atmospheric Research




--
Posted from clam.niwa.cri.nz [202.36.29.1]
via Mailgate.ORG Server - http://www.Mailgate.ORG
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Re: Array has a corrupted descriptor
Next Topic: Re: resizing an array of structures (uugh)

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Wed Oct 08 13:43:10 PDT 2025

Total time taken to generate the page: 0.00497 seconds