Search found 2 matches

by Dyno
27 Jan 2009 17:22
Forum: DOS Batch Forum
Topic: Trimming in a 'set' command via a variable
Replies: 2
Views: 6593

SOLVED by DosItHelp

I've never seen set "var=value". That was indeed the first part of solving the problem. The second was getting 'for' to work with the new variable, which you also correctly pointed out. Thank you! The revised code (complete with problems and fixes) is below with better explainations of how...
by Dyno
25 Jan 2009 20:17
Forum: DOS Batch Forum
Topic: Trimming in a 'set' command via a variable
Replies: 2
Views: 6593

Trimming in a 'set' command via a variable

I'm trying to write a fileTrim function but having problems. I want to do a rename so the following happens with the commands: set from="C:\test" set trim="Microsoft " call :fTrim And the directory: C:\test\Microsoft Excel.lnk C:\test\Microsoft Word.lnk C:\test\Office.lnk C:\test...