Could anyone tell me what happens in this batch file?

Could anyone tell me what happens in this batch file?

Postby lookoutnoob » 04.09.2015, 09:37

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?
lookoutnoob
 
Posts: 65
Joined: 04.06.2015, 20:42

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

Postby Gerby » 04.09.2015, 12:47

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
Mach mit - der Übersichtlichkeit wegen! Füge Log-Auszüge als [Code] ein.
Make it clear! Insert log excerpts as [Code].
Gerby
 
Posts: 504
Joined: 11.09.2009, 15:57
Location: DE > SH > SE


Return to Download

Who is online

Users browsing this forum: No registered users and 376 guests