中国DOS联盟论坛

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-11-10 12:51
47,815 topics / 349,930 posts / today 0 new / 48,291 members
DOS批处理 & 脚本技术(批处理室) » [Original] SendTo+ Batch Processing Practical Small Tool -- Enhanced Send To
Printable Version  80,146 / 75
Floor31 无奈何 Posted 2006-10-03 12:31
荣誉版主 Posts 356 Credits 1,338
Re fastslz

What system are you using? It seems to be 2000? Your reg is different from my version, and the output is also different. Try adjusting the value after skip=, try setting it to 1, or change it to another number, or remove skip=.

[ Last edited by 无奈何 on 2006-10-3 at 12:45 ]
Floor32 fastslz Posted 2006-10-03 13:03
铂金会员 Posts 2,315 Credits 5,493 From 上海
Strange, XP SP2呀
Bill has specialized it for me
Floor33 3742668 Posted 2006-10-03 13:18
荣誉版主 Posts 718 Credits 2,013
Re fastslz:

Regarding your test 3, the following points can be obtained from your test 1:
1. skip is best == 4
2. "delims= " is invalid.

In your display result, there is content with 8 spaces after REG_SZ, which is easily associated with the fact that tab in Windows defaults to occupying 8 characters. Also, in batch processing, if delims is not specified, the default delims is space/Tab, so it is obvious that your "delims= " parameter is ineffective, and instead, it will make the tab character lose the role of splitting tokens.

It is suggested to test the following codes:

code 1:


code 2:



end:

As for your test 4, it is even less universal. If any character in REG_SZ is included in the output of the reg command, it may get an incorrect result. Because the delims parameter does not obtain the delimiter according to the string, but treats the string after delims= as the delimiter set, that is, any character in it is regarded as a delimiter. (Case-sensitive)

Reference:

skip=n - Refers to the number of lines to ignore at the beginning of the file.
delims=xxx - Refers to the delimiter set. This replaces the default delimiter set of space and tab.
tokens=x,y,m-n - Refers to which symbols of each line are passed to the for itself in each iteration. This will lead to the assignment of additional variable names. The format of m-n is a range. The mth is specified by the nth symbol. If the last character in the symbol string is an asterisk, then additional variables will be assigned after the last symbol is parsed and accept the reserved text of the line.
Floor34 无奈何 Posted 2006-10-03 14:16
荣誉版主 Posts 356 Credits 1,338
Thanks to the reminder from brother 3742668, the original intention was to add skip to increase efficiency, but it seems it was unnecessary. Make a correction. I'm using 2k3 now, and it seems it's really necessary to install a virtual machine for more testing.
Floor35 fastslz Posted 2006-10-03 14:32
铂金会员 Posts 2,315 Credits 5,493 From 上海
Thanks to 3742668 for the solution. After reading your reference, I have a deeper understanding.

The following is the summary:

1: Due to the particularity of my Windows XP pro SP2 (it has been confirmed that reg.exe has not been replaced), unfortunately, the version master's code cannot be executed normally in my XP, while this code can be executed normally in 2003.



2: The version master's code of 3742668 can be executed normally in my XP and this code can also be executed normally in 2003. It can be seen that the version master's code of 3742668 has stronger universality


3: Regarding the description of my Windows XP version, the Windows XP pro SP2 product ID belongs to the 011 segment (the generally passed XP version product ID on the network generally belongs to the 640 segment). I have found that these two versions of XP are indeed different since I have been using it.
All XP patches have been updated to 2006-10, and the.NET Framework 2.0 has been installed. These are the only differences. reg.exe MD5: 7f1e65bde053985ba645340bc0cf6497
Floor36 fastslz Posted 2006-10-03 14:38
铂金会员 Posts 2,315 Credits 5,493 From 上海
Hehe...It seems the moderator hasn't slept yet either. You've worked hard, take care of your health哦
Floor37 3742668 Posted 2006-10-06 11:02
荣誉版主 Posts 718 Credits 2,013
The VBS version has two functions. I accidentally deleted it when I uploaded and modified it last night. I'm uploading it again today. Everyone, please help test it.
After extracting the attachment to the directory, run the "Install.vbs" in it to install.
Because I've been very busy these days and a little under the weather, the code isn't well-organized and is very messy. Don't laugh at the experts.

Attachments
SendTo+(VBS版).rar (3.29 KiB)
Floor38 electronixtar Posted 2006-10-08 05:42
铂金会员 Posts 2,672 Credits 7,493
The VBS version I like ^_^
Floor39 fastslz Posted 2006-10-08 05:48
铂金会员 Posts 2,315 Credits 5,493 From 上海
I also downloaded and tried it. The VBS version is more streamlined.
electronixtar, your VBS skills are also remarkable. Let's show off some time later ^_^
Floor40 electronixtar Posted 2006-10-08 07:00
铂金会员 Posts 2,672 Credits 7,493
Cold~~ What I wrote in VBS is just a fragment. There's still a long way to go compared to the moderators.
Floor41 无奈何 Posted 2006-10-10 23:50
荣誉版主 Posts 356 Credits 1,338
Thanks 3742668
Hard work, good health is the most important. I also feel uncomfortable everywhere recently.
Try it first!
Floor42 3742668 Posted 2006-10-12 07:30
荣誉版主 Posts 718 Credits 2,013
Today I checked 3 scripts and found a few minor issues, but they don't affect usage. I wonder if anyone has tested and found problems? As for the other functions, they are all relatively simple. Has no one tried them?
Floor43 hxuan999 Posted 2006-11-23 05:02
中级用户 Posts 161 Credits 337
Support 无奈何
Floor44 redtek Posted 2006-11-25 03:11
金牌会员 Posts 1,147 Credits 2,902
Very wonderful post~~ Admire infinitely~:)
Floor45 tao0610 Posted 2006-11-25 03:44
高级用户 Posts 218 Credits 579
Enjoy together...
Prev  1 2 3 4 5 6  Next
[ Contact the Union admin team - 中国DOS联盟 - Standard version ]
Sponsored by ifanr Inc | © 2001–2023