All I want to do is:
- change to specific directory of a different drive
- run a command in that directory e.g. dir
I need to do this in one line using cmd.exe starting from a different drive
I would do this like this:
c:
cd temp
dir
so in one statement so far I have:
cmd /c c: & cd\temp & dir
But this just gives me dir for the P: directory which I start from. How can I get dir returned from c:\temp?
I can't run a batch file and it must be in a one-line statement.