You are not logged in.

#1 13 Jan 2015 01:47

Berrie
New Member
Registered: 13 Jan 2015
Posts: 1

Execute shell script to a folder

Hi everyone,
I'm a newbie to Windows CMD. I have a shell script to be executed on several files in a folder. May I know how should I direct the script to be executed on that folder? Thank you very much.

Offline

#2 13 Jan 2015 12:43

AiroNG
Member
From: Germany
Registered: 26 Nov 2012
Posts: 42

Re: Execute shell script to a folder

Maybe something like this:

@echo off

pushd PATH-TO-TARGET-FOLDER

:: execute stuff here

popd

More Information about "pushd" can be read here


I don't suffer from insanity, I enjoy every minute of it.

Offline

#3 08 Mar 2015 11:20

chinkitkit
Member
Registered: 16 Dec 2014
Posts: 14

Re: Execute shell script to a folder

hey, about the pushd and popd syntax, i had asked the question before.

thinking the following might be useful for you. Thank you ! smile

http://ss64.org/viewtopic.php?id=1973


Detour in life always surprise people.

Offline

Board footer

Powered by