Re: [H] CD Question

2007-08-25 Thread j maccraw
Thanks for the tip Wayne, I'll check out your code! In this case Thane was looking for an automated way of getting to a sub-folder without knowing it's name or asking for user input. Wayne Johnson wrote: > At 02:00 08-24-2007, j maccraw typed: > There is also a method I've seen DriverPacks use t

Re: [H] CD Question

2007-08-23 Thread j maccraw
Yes, it does also work for CD since it's same drive, I've just gotten in the habit of PUSHDing & POPDing in my batch files. If you need it to work for a drive other than current you'd have to change it a bit at which point I'd say "PUSHD drive:path" more straight forward than "CD /D drive:path"

Re: [H] CD Question

2007-08-23 Thread Thane Sherrington
At 03:54 PM 23/08/2007, Ben Ruset wrote: You want to go down one level, and into another directory? No, sorry, I have a structure like this: \temp \temp\dir1 I'm in \temp and I want to move to \dir1. T

Re: [H] CD Question

2007-08-23 Thread Thane Sherrington
At 04:17 PM 23/08/2007, j maccraw wrote: With only one folder, easily enough done under XP: for /d %f in (*) do pushd %f Brilliant! Thanks. This also appears to work as for /d %f in (*) do cd %f T

Re: [H] CD Question

2007-08-23 Thread j maccraw
With only one folder, easily enough done under XP: for /d %f in (*) do pushd %f Thane Sherrington wrote: > Is there a command to change directory to go down one level of the > folder structure - the reverse of cd.. basically? I have a folder that > only has one subfolder, but I don't know the

Re: [H] CD Question

2007-08-23 Thread Christopher Fisk
On Thu, 23 Aug 2007, Thane Sherrington wrote: Is there a command to change directory to go down one level of the folder structure - the reverse of cd.. basically? I have a folder that only has one subfolder, but I don't know the name of that subfolder before I run the script. for /r "C:\MyP

Re: [H] CD Question

2007-08-23 Thread Ben Ruset
You want to go down one level, and into another directory? Thane Sherrington wrote: Is there a command to change directory to go down one level of the folder structure - the reverse of cd.. basically? I have a folder that only has one subfolder, but I don't know the name of that subfolder b

[H] CD Question

2007-08-23 Thread Thane Sherrington
Is there a command to change directory to go down one level of the folder structure - the reverse of cd.. basically? I have a folder that only has one subfolder, but I don't know the name of that subfolder before I run the script. T