Tom's Guide | Tom's Hardware | Tom's Games
![]() |
![]() |
![]() |
Sir,
I am in beginning stage of batch programming. And want to know that, when i right click on folder, through batch programming....it takes the name of folder in variable defined in the batch program... so as to use that folder name. And i already add its entry in registry...in right click menu.Please help me in this way, and consider the simplest way.
I really appreciate ur responce!!
Thanks in advance!!Syed Fahad Hussain

So basically you want the name of the current directory into a variable, which that script then can use to do whatever.
I am fan of awk/sed/grep, and I would propose that but you need a copy of those files, and there are no official versions of them (not from Microsoft I mean).
You then could use these statements :
C:\Temp>cd | awk " { print \"set folder=\"$0 } " > folder.cmd
C:\Temp>call folder
C:\Temp>set folder=C:\Temp
C:\Temp>echo %folder%
C:\TempBut there are standard MS tools that do the same, don't know how though.
I can help you with a copy of these executables, they are legal and free and have no viruses, I promise.

![]() |
![]() |
![]() |

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.
| Ads by Google |