Browse to sub folder

Discussion forum for all Windows batch related topics.

Moderator: DosItHelp

Post Reply
Message
Author
foncesa
Posts: 42
Joined: 12 Sep 2013 00:09

Browse to sub folder

#1 Post by foncesa » 12 Sep 2013 00:28

Hi,

On daily basis text files are generated in c:\deposits\reports\09122013\section\*.txt
The batch file merge this files and creates a master file, but my problem is that i have copy that batch file inside the folder to execute it. I cannot define the constant path because on daily basis the path changes due to date. c:\...\...\todays date\...\

How do i define that?

foxidrive
Expert
Posts: 6031
Joined: 10 Feb 2012 02:20

Re: Browse to sub folder

#2 Post by foxidrive » 12 Sep 2013 00:49

You can put the batch file in c:\windows\system32 and it will be on the PATH
so you can open a cmd prompt in the folder and type in myfile or whatever you called it.

foncesa
Posts: 42
Joined: 12 Sep 2013 00:09

Re: Browse to sub folder

#3 Post by foncesa » 12 Sep 2013 11:48

Thanks for the reply, that's a perfect way. Thankyou.

Post Reply