batch file - Open folder based on string? -
batch file - Open folder based on string? -
i'd write bat file can open folder based on string.
for instance if job code a100
i'd open x:\a contracts\a100
for b200
x:\b contracts\b200
etc.
i.e. etc. contract , needs 1 string allow "a contracts" part of path targetted , job code needs end.
i have codes a-d lastly part of code end folder. however, a100 - job name (which aren't easy plenty remember). possible target partial match using this?
i'm used writing in matlab , other scripting languages i'm bit fresh bat files help much appreciated.
also, if it'd possible script maintain cmd open , loop re-input next code that'd amazing!
this simple batch file witch take user input , appropriately open windows explorer specifications.
@echo off set /p code="job code: " set dir="x:\%code:~0,1% contracts\%code%\" :: open explorer using %dir% explorer %dir% and want. shouldn't hard modify.
mona
string batch-file folder contract
Comments
Post a Comment