Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!dali.cs.montana.edu!caen!uwm.edu!csd4.csd.uwm.edu!jeffd From: jeffd@csd4.csd.uwm.edu (Jeffrey Alan Ding) Newsgroups: comp.sys.novell Subject: Re: CD in Novell script file Message-ID: <11389@uwm.edu> Date: 25 Apr 91 03:01:52 GMT References: <1991Apr24.132219.13101@menudo.uh.edu> Sender: news@uwm.edu Organization: University of Wisconsin - Milwaukee Lines: 36 In article <1991Apr24.132219.13101@menudo.uh.edu> cychao@csun12.UUCP (PUT YOUR NAME HERE) writes: >Hi, Can somebody tell me how to Change Directory in my script file? >DOS CD doesn't work. Thank you for your reply! > >------------------------------------ >CY Chao U. of Houston, Texas >InterNet: cychao@cs.uh.edu >------------------------------------ Hi, what you can do is use the DRIVE command. Here's an example. MAP H:=SYS:SYSTEM DRIVE H First what you want to do is map the directory to whatever letter you want. In this case I mapped H to the system directory. Then use the DRIVE command to make the drive the default when you exit the script. You could also use a local drive letter here. Another way is using the external execute (#) command. Here's an example for that: MAP S1:=SYS:DOS MAP F:=SYS: SET COMSPEC = S1:COMMAND.COM DRIVE F #COMMAND /C CD \DOS This example uses COMMAND.COM to issue the DOS CD command. You have to have the path for COMMAND.COM mapped as a search before you issue the call otherwise it won't be found. I hope I got everything right here, if not, someone will surely point it out. :-) Later. jeffd@csd4.csd.uwm.edu