Forums before death by AOL, social media and spammers... "We can't have nice things"
|    alt.msdos.batch    |    Fun with MS-DOS batch files    |    42,547 messages    |
[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]
|    Message 42,411 of 42,547    |
|    JJ to Oliver    |
|    Re: How do you remove ampersand from a W    |
|    17 Nov 24 09:02:20    |
      XPost: alt.comp.os.windows-10, rec.photo.digital       From: jj4public@outlook.com              On Sat, 16 Nov 2024 08:52:26 -0700, Oliver wrote:       > To clarify my quetion...       >       > I don't ask you to do my debugging, but I would like to know if I       > faithfully followed the suggestions, so here's the file after I followed       > what I thought were the suggestions (with the comments removed).       >       > Only one top-level directory is supposed to be created (which was how the       > original posted script worked - which was a fully working script).       >       > Did I follow your suggestions correctly or did I mess up in understanding?              You have a different problem.              A file system path should be double-quoted, in case the path has a space or       a special character in it. Otherwise, the command will see multiple       parameters instead of one.              e.g. a command line like this...              mkdir z:\my data\new category              That will never work as expected, since instead of 1 parameter, the command       will see 3 parameters:       1: z:\my       2: data\new       3: category              So, the path should be double-quoted like this.              mkdir "z:\my data\new category"              If variables are used as part of a file system path, after the variables are       expanded, it should end up double-quoted like above.              A path whose parts are separated double-quoted like below...              mkdir "z:\my data"\"new category"              That also work, but highly not recommended, since not all programs do proper       command line parsing. i.e. don't assume it will work for all programs.              Also... Below command line is not same as above.              mkdir "z:\my data"\ "new category"              Notice the space between the 2 double-quoted parts. That would have the same       problem as the first code above.              --- SoupGate-DOS v1.05        * Origin: you cannot sedate... all the things you hate (1:229/2)    |
[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]
(c) 1994, bbs@darkrealms.ca