Thanks, very cool! These expansion thingies are new to me. I used to use 4dos and 4nt, but haven't done anything at all tricky with batch files for ages.
On Wednesday, May 13, 2020 at 11:18:07 AM UTC-4, Matt Wilkie wrote: > > I did have to edit the batch file paths from f:\ to e:\ because the mount >> name of the drive was different on the two computers. I haven't come up >> with a way to adapt to the change in drive letter except by editing the >> batch file, sorry to say. > > > If using CMD (as opposed to Powershell) use %~dp0 > > %0 - name of bat file (or call :label) > %~ - trigger expansion features > %~d - drive letter > %~p - path > %~n - filename > %~x - file extension > > %~dpnx0 - fully qualified path and file name of currently executing batch > file. > > See https://ss64.com/nt/syntax-args.html for more > > -matt > -- You received this message because you are subscribed to the Google Groups "leo-editor" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/leo-editor/153ea8a8-601e-4874-ac9b-5b9e84cdec70%40googlegroups.com.
