Page 1 of 1

Could anyone tell me what happens in this batch file?

PostPosted: 04.09.2015, 09:37
by lookoutnoob
Can anyone explain me what happens here:

@pushd ..
call .\DownloadUpdates.cmd w60 glb /verify /skypdynamic
@popd
@pushd ..
call .\CreateISOImage.cmd w60 glb
@popd
@pushd ..
call .\CopyToTarget.cmd w60 glb "C:\Users\xx\Desktop\USB-map"
@popd

I understand it downloads the Windows Vista 32 bit updates en verifies the updates and skips the dynamic updates en makes an iso.

But what does the `pushd`, `popd` do? and how does it find the \DownloadUpdates.cmd? Does it makes this DownloadUpdates.cmd with the pushd command?

Re: Could anyone tell me what happens in this batch file?

PostPosted: 04.09.2015, 12:47
by Gerby
Hi lookoutnoob!

The two commands are used in batches to temporarily change to another directory (pushd, called with destination dir) and, after doing some things there, getting back to the initial directory (popd, called without parameter). In this specific case, pushd just changes to the parent directory (two dots).

Greetz
Gerby