Search found 2 matches
- 27 Feb 2013 14:24
- Forum: DOS Batch Forum
- Topic: Help with batch script to insert a 7zip flag on command line
- Replies: 3
- Views: 3156
Re: Help with batch script to insert a 7zip flag on command
Thank you for the help! One small note is that echo.%* | findstr /i /C:"-w" >nul && set workingdir=-w"..\UpDirectory" should be echo.%* | findstr /i /C:"-w" >nul || set workingdir=-w"..\UpDirectory" in order for the script to insert the working directo...
- 27 Feb 2013 12:51
- Forum: DOS Batch Forum
- Topic: Help with batch script to insert a 7zip flag on command line
- Replies: 3
- Views: 3156
Help with batch script to insert a 7zip flag on command line
I am trying to write a 7z.bat script to be used in place 7z.exe that simply examines if a working directory has been specified as an argument (-w switch seen below) and inserts a default working directory if one isn't found. I have the script mostly working with one exception, when you enter a speci...