Forums before death by AOL, social media and spammers... "We can't have nice things"
|    alt.msdos.batch.nt    |    Fun with Windows NT batch files    |    68,980 messages    |
[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]
|    Message 67,305 of 68,980    |
|    Docfxit to All    |
|    Re: Batch file not working correctly    |
|    26 Sep 18 09:27:22    |
      From: docfxit@gmail.com              On Wednesday, September 26, 2018 at 4:40:41 AM UTC-7, JJ wrote:       > On Wed, 26 Sep 2018 01:28:48 -0700 (PDT), Docfxit wrote:       > > This batch file is:       > > 1. acting on file on the C: drive. It should be on the E: drive.       >        > Specify the drive letter along with the file names.       >        > > 2. Not displaying the echo text.       >        > If you meant the "About to delete.." text, it displays properly.       >        > > 3. Not stopping when it gets to CMD       >        > Because the batch file waits for the new instance of CMD program to end.              Thanks for the reply...              On my computer I don't see any Echo text when I run it. What can I do to make       the echo text show?              When you say "Specify the drive letter along with the file names."       I don't understand what you are suggesting.       Could you please give me an example.       On the second time I use %Drive%       The line should be:       E:       I expect it to change to the E: drive.       When it runs this line:        @for /f "usebackq delims=|" %%i in (`dir /s /b /x /A:H ^| find       "desktop.ini"`) do del /A:H "%%i"              I expect the Dir cmd to run on the E: drive. I can't see anything in the cmd       window except it's displaying one Desktop.ini in C:\Windows\assembly with       access denned. Maybe I would understand more if it was logging to the cmd       window. It doesn't make any        difference if I have Echo on or Echo off as the first line of the bat file. I       still don't see anything in the cmd window.              Thanks,       Docfxit              --- SoupGate-Win32 v1.05        * Origin: you cannot sedate... all the things you hate (1:229/2)    |
[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]
(c) 1994, bbs@darkrealms.ca