![]() |
China DOS Union-- Unite DOS · Advance DOS · Grow DOS --Union site: www.cn-dos.net Forum site: www.cn-dos.net/forum |
| Guest | Log in | Register | Members | Search | China DOS Union |
|
中国DOS联盟论坛 The time now is 2026-08-15 12:50 |
47,813 topics / 349,903 posts / today 1 new / 48,257 members |
| DOS疑难解答 & 问题讨论 (解答室) » [Help] Which is faster, LOCATE or DIR? |
| Printable Version 1,376 / 2 |
| Floor1 formatted | Posted 2003-01-16 00:00 |
| 初级用户 Posts 26 Credits 179 | |
|
I have a section of commands like this:
dir %gpath%*.gho /b /s >>%temp%\tmp.txt I thought DIR was too slow, so I borrowed LOCATE from Yiyesong's boot disk and changed it to: locate %gpath%*.gho /n >%temp%\tmp.txt When this command is used by itself, it can find the GHOST image file on the specified drive, but why does it stop working when put into the command line above? I'd appreciate it if some expert could point it out |
|
| Floor2 Wengier | Posted 2003-01-16 00:00 |
| 系统支持 Posts 10,521 Credits 27,736 | |
|
What exactly do you mean by "not working"? I tried it, and it works.
|
|
| Floor3 formatted | Posted 2003-01-17 00:00 |
| 初级用户 Posts 26 Credits 179 | |
|
I may not have explained it clearly.
If I use dir d: *.gho /b /s >>%temp%\tmp.txt and locate d: *.gho /n >%temp%\tmp.txt, the final results shown in tmp.txt are the same for both, just a simple line like "d:\backup\xppro.gho". I thought it had succeeded, so I put it on the disk, but in actual use the latter always tells me it can't find it. It made me furious, and then I manually entered the command locate d: *.gho under DOS, and it found it immediately. I don't understand what's going on. Never mind, boss, I'll just paste the batch file here. Please help me see where the problem is. [ Last edited by willsort on 2005-10-13 at 10:51 |
|
|
[ Contact the Union admin team -
中国DOS联盟 -
Standard version ] Sponsored by ifanr Inc | © 2001–2023 |