1. Help! chdir command
- Posted by tuncaydin6 at tuncaydin6.screaming.net Mar 05, 2001
- 368 views
------=_NextPart_000_002E_01C0A596.C40F7A40 charset="iso-8859-1" Hi!!=20 I have a sequence with 3 or 4 internal sequences. I would like to change the active directory by using one of the URL's in my sequence. eg: paths[6] when I try i =3D chdir(paths[6]) it doesn't do anything when i try i =3D chdir("paths[6]") it doesn't do anything. How can I put info from a sequence into the = chdir command? HELP! Its drivin me crazy. Thanks ------=_NextPart_000_002E_01C0A596.C40F7A40 charset="iso-8859-1" <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <HTML><HEAD> <META http-equiv=3DContent-Type content=3D"text/html; = charset=3Diso-8859-1"> <META content=3D"MSHTML 5.50.4611.1300" name=3DGENERATOR> <STYLE></STYLE> </HEAD> <BODY bgColor=3D#ffffff> <DIV><FONT face=3DArial size=3D2>Hi!! </FONT></DIV> <DIV><FONT face=3DArial size=3D2></FONT> </DIV> <DIV><FONT face=3DArial size=3D2>I have a sequence with 3 or 4 internal=20 sequences.</FONT></DIV> <DIV><FONT face=3DArial size=3D2></FONT> </DIV> <DIV><FONT face=3DArial size=3D2>I would like to change the active = directory by=20 using one of the</FONT></DIV> <DIV><FONT face=3DArial size=3D2>URL's in my sequence.</FONT></DIV> <DIV><FONT face=3DArial size=3D2></FONT> </DIV> <DIV><FONT face=3DArial size=3D2>eg: paths[6]</FONT></DIV> <DIV><FONT face=3DArial size=3D2></FONT> </DIV> <DIV><FONT face=3DArial size=3D2>when I try i =3D = chdir(paths[6])</FONT></DIV> <DIV><FONT face=3DArial size=3D2></FONT> </DIV> <DIV><FONT face=3DArial size=3D2>it doesn't do anything</FONT></DIV> <DIV><FONT face=3DArial size=3D2></FONT> </DIV> <DIV><FONT face=3DArial size=3D2>when i try</FONT></DIV> <DIV><FONT face=3DArial size=3D2></FONT> </DIV> <DIV><FONT face=3DArial size=3D2>i =3D chdir("paths[6]")</FONT></DIV> <DIV><FONT face=3DArial size=3D2></FONT> </DIV> <DIV><FONT face=3DArial size=3D2>it doesn't do anything. How can I put = info from a=20 sequence into the chdir command?</FONT></DIV> <DIV><FONT face=3DArial size=3D2></FONT> </DIV> <DIV><FONT face=3DArial size=3D2>HELP! Its drivin me crazy.</FONT></DIV> <DIV><FONT face=3DArial size=3D2></FONT> </DIV> <DIV><FONT face=3DArial size=3D2>Thanks</FONT></DIV> ------=_NextPart_000_002E_01C0A596.C40F7A40--
2. Re: Help! chdir command
- Posted by Irv Mullins <irvm at ellijay.com> Mar 05, 2001
- 381 views
On Mon, 05 Mar 2001, you wrote: > > Hi!! > > I have a sequence with 3 or 4 internal sequences. > > I would like to change the active directory by using one of the > URL's in my sequence. > > eg: paths[6] > > when I try i = chdir(paths[6]) The above is the correct syntax. Try changing it to: ? chdir(paths[6]) and see what prints out. If it's -1, then the path is in error. Maybe you're not escaping the slash marks? e.g. one of the paths might be C:\EUPHORIA, which should be written C:\\EUPHORIA in order to work. Regards, Irv > it doesn't do anything > > when i try > > i = chdir("paths[6]") This will never work. > > it doesn't do anything. How can I put info from a sequence into the chdir > command? > > HELP! Its drivin me crazy. >