|
duanml
中级用户
  
积分 231
发帖 112
注册 2007-6-19
状态 离线
|
『第 16 楼』:
使用 LLM 解释/回答一下
你有装ultraedit吗?
先将混合的目录文件和属性时间拷进去,将内容之间分隔用的空格段替换为<tab>字符。
然后将内容拷入excel,excel会按照<tab>分隔符,将目录文件和属性时间放在不同的列。
而后在目录文件列前加入一空列,插入xcopy,在目录文件列后的一列换成目标目录,和/e。
做完后,将其一起拷入bat文件。
Do you have UltraEdit installed?
First, copy the mixed directory files and attribute times in, and replace the space segments used to separate the contents with <tab> characters.
Then copy the content into Excel, and Excel will place the directory files and attribute times in different columns according to the <tab> delimiter.
Then add an empty column in front of the directory file column, insert xcopy, and replace the column after the directory file column with the target directory and /e.
After that, copy them all into a bat file together.
|
|
2007-6-20 21:12 |
|
|
beyoungse
中级用户
  
积分 253
发帖 112
注册 2005-12-20
状态 离线
|
『第 17 楼』:
使用 LLM 解释/回答一下
我装一下ultraedit试试,谢谢关注
I'll try installing UltraEdit. Thanks for your attention
|
|
2007-6-20 21:13 |
|
|
lxmxn
版主
       
积分 11386
发帖 4938
注册 2006-7-23
状态 离线
|
『第 18 楼』:
使用 LLM 解释/回答一下
我按照你给的文件测试是可以的,不知道你为什么不行。
I followed the file you provided for testing and it works. I don't know why you can't.
|
|
2007-6-20 21:49 |
|
|
beyoungse
中级用户
  
积分 253
发帖 112
注册 2005-12-20
状态 离线
|
『第 19 楼』:
使用 LLM 解释/回答一下
生成的 run.bat
copy "C:\Documents and Settings\All Users\「开始」菜单\程序\Adobe ImageReady CS.lnk 1KB A 2007-6-20 19:19:52 " "D:\Documents and Settings\All Users\「开始」菜单\程序\Adobe ImageReady CS.lnk 1KB A 2007-6-20 19:19:52 "
copy "C:\Documents and Settings\All Users\「开始」菜单\程序\Adobe Photoshop CS.lnk 1KB A 2007-6-20 19:19:52 " "D:\Documents and Settings\All Users\「开始」菜单\程序\Adobe Photoshop CS.lnk 1KB A 2007-6-20 19:19:52 "
copy "C:\Documents and Settings\All Users\「开始」菜单\程序\启动\Adobe Gamma Loader.lnk 2KB A 2007-6-20 19:19:52
.
.
.
..
Generated run.bat
copy "C:\Documents and Settings\All Users\「Start」Menu\Programs\Adobe ImageReady CS.lnk 1KB A 2007-6-20 19:19:52 " "D:\Documents and Settings\All Users\「Start」Menu\Programs\Adobe ImageReady CS.lnk 1KB A 2007-6-20 19:19:52 "
copy "C:\Documents and Settings\All Users\「Start」Menu\Programs\Adobe Photoshop CS.lnk 1KB A 2007-6-20 19:19:52 " "D:\Documents and Settings\All Users\「Start」Menu\Programs\Adobe Photoshop CS.lnk 1KB A 2007-6-20 19:19:52 "
copy "C:\Documents and Settings\All Users\「Start」Menu\Programs\Startup\Adobe Gamma Loader.lnk 2KB A 2007-6-20 19:19:52
.
.
.
..
|
|
2007-6-20 21:52 |
|
|
beyoungse
中级用户
  
积分 253
发帖 112
注册 2005-12-20
状态 离线
|
『第 20 楼』:
使用 LLM 解释/回答一下
to: duanml
我在EXCEL 中每个单元格的值都要加引号才可以拷贝的,我怎么把一列中单元格的值加引号
I need to add quotes to the values in each cell in EXCEL. How can I add quotes to the values in a column?
|
|
2007-6-20 21:54 |
|
|
duanml
中级用户
  
积分 231
发帖 112
注册 2007-6-19
状态 离线
|
『第 21 楼』:
使用 LLM 解释/回答一下
那就在目录文件列前后再各加一列,里面加上引号,然后再拷回ultraedit,用列模式,删除多余的<tab>符号。
Then add a column before and after the directory file list, add quotes in it, and then copy back to UltraEdit, use column mode to delete the excess <tab> symbols.
|
|
2007-6-20 21:59 |
|
|
beyoungse
中级用户
  
积分 253
发帖 112
注册 2005-12-20
状态 离线
|
『第 22 楼』:
使用 LLM 解释/回答一下
,试了,还是有点问题
复制 *.lnk 时提示是文件还是目录?
每个目录后面还要再加上\
Well, I tried, but there are still some problems. When copying *.lnk, it prompts whether it's a file or a directory? You need to add \ after each directory.
|
|
2007-6-20 22:06 |
|
|
beyoungse
中级用户
  
积分 253
发帖 112
注册 2005-12-20
状态 离线
|
『第 23 楼』:
使用 LLM 解释/回答一下
用 EXCEL 把文件保存为 TXT 是可以啦,但是还有一个问题。如下:
xcopy /e "C:\Program Files\Common Files\InstallShield\Professional" "D:\目标文件\Program Files\Common Files\InstallShield\Professional"
xcopy /e "C:\Program Files\Common Files\InstallShield\Professional\RunTime" "D:\目标文件\Program Files\Common Files\InstallShield\Professional\RunTime"
xcopy /e "C:\Program Files\Common Files\InstallShield\Professional\RunTime\0701" "D:\目标文件\Program Files\Common Files\InstallShield\Professional\RunTime\0701"
xcopy /e "C:\Program Files\Common Files\InstallShield\Professional\RunTime\0701\Intel32" "D:\目标文件\Program Files\Common Files\InstallShield\Professional\RunTime\0701\Intel32"
xcopy /e "C:\Program Files\Common Files\InstallShield\Professional\RunTime\0701\Intel32\ctor.dll" "D:\目标文件\Program Files\Common Files\InstallShield\Professional\RunTime\0701\Intel32\ctor.dll"
xcopy /e "C:\Program Files\Common Files\InstallShield\Professional\RunTime\0701\Intel32\DotNetInstaller.exe" "D:\目标文件\Program Files\Common Files\InstallShield\Professional\RunTime\0701\Intel32\DotNetInstaller.exe"
拷贝第一个目录时,他会把目录下面的所有的文件都拷贝到目录文件夹中,是目录时要求只能建交目录,是文件时才要复制单个文件
It's okay to save the file as TXT using EXCEL, but there's still one problem. As follows:
xcopy /e "C:\Program Files\Common Files\InstallShield\Professional" "D:\Target Files\Program Files\Common Files\InstallShield\Professional"
xcopy /e "C:\Program Files\Common Files\InstallShield\Professional\RunTime" "D:\Target Files\Program Files\Common Files\InstallShield\Professional\RunTime"
xcopy /e "C:\Program Files\Common Files\InstallShield\Professional\RunTime\0701" "D:\Target Files\Program Files\Common Files\InstallShield\Professional\RunTime\0701"
xcopy /e "C:\Program Files\Common Files\InstallShield\Professional\RunTime\0701\Intel32" "D:\Target Files\Program Files\Common Files\InstallShield\Professional\RunTime\0701\Intel32"
xcopy /e "C:\Program Files\Common Files\InstallShield\Professional\RunTime\0701\Intel32\ctor.dll" "D:\Target Files\Program Files\Common Files\InstallShield\Professional\RunTime\0701\Intel32\ctor.dll"
xcopy /e "C:\Program Files\Common Files\InstallShield\Professional\RunTime\0701\Intel32\DotNetInstaller.exe" "D:\Target Files\Program Files\Common Files\InstallShield\Professional\RunTime\0701\Intel32\DotNetInstaller.exe"
When copying the first directory, it will copy all the files under the directory to the directory folder. When it's a directory, it's required to only create the directory, and when it's a file, it's only to copy the single file
|
|
2007-6-20 22:51 |
|
|
duanml
中级用户
  
积分 231
发帖 112
注册 2007-6-19
状态 离线
|
『第 24 楼』:
使用 LLM 解释/回答一下
你的这文件有一列都有属性显示的,第一次拷入excel时,按属性的排序,将D属性挑出,和文件分开处理就可以了。
xcopy /t /e 目录 目标
就不拷文件了。
There is a column in your file that shows attributes. When you first copy it into Excel, sort by attributes, pick out the D attribute and handle it separately from the file.
xcopy /t /e directory target
It won't copy the files.
|
|
2007-6-20 23:08 |
|
|
lxmxn
版主
       
积分 11386
发帖 4938
注册 2006-7-23
状态 离线
|
『第 25 楼』:
使用 LLM 解释/回答一下
把你的文件以附件的形式放上来,我测试一下。
Please upload your file as an attachment, and I'll test it.
|
|
2007-6-21 00:47 |
|
|
beyoungse
中级用户
  
积分 253
发帖 112
注册 2005-12-20
状态 离线
|
『第 26 楼』:
to:lxmxn 版主
使用 LLM 解释/回答一下
前两天去搞别的事情了,不好意思。原文件见附件
I was occupied with other things the past two days, sorry. The original file is in the attachment.
附件
1: changefiles.txt (2007-6-26 15:30, 3.82 KiB,下载次数: 9)
|
|
2007-6-26 15:30 |
|
|
memphis220
新手上路

积分 6
发帖 3
注册 2007-2-8
状态 离线
|
『第 27 楼』:
使用 LLM 解释/回答一下
for /f "usebackq delims== " %%i in (h:\cp.txt) do (mkdir e:\1"%%~pi")&(copy "%%i" e:\1"%%~pi")
for /f "usebackq delims== " %%i in (h:\cp.txt) do (mkdir e:\1"%%~pi")&(copy "%%i" e:\1"%%~pi")
|
|
2007-6-27 12:23 |
|
|
beyoungse
中级用户
  
积分 253
发帖 112
注册 2005-12-20
状态 离线
|
『第 28 楼』:
使用 LLM 解释/回答一下
楼上的还是会有多余的东西
(mkdir "目录" ) & (copy "C:\"目录"\data1.cab 1,886KB A 2004-6-16 9:44:50" "目录")
There will still be redundant things upstairs. (mkdir "directory") & (copy "C:\"directory"\data1.cab 1,886KB A 2004-6-16 9:44:50" "directory")
|
|
2007-7-9 19:50 |
|
|
lxmxn
版主
       
积分 11386
发帖 4938
注册 2006-7-23
状态 离线
|
『第 29 楼』:
使用 LLM 解释/回答一下
RE beyoungse:
我再次测试了一下,我13楼的没问题,把yourfile.txt改成你的changfiles.txt文件。
RE beyoungse:
I tested again, the one on my 13th floor is okay, change yourfile.txt to your changfiles.txt file.
|
|
2007-7-9 21:03 |
|
|
beyoungse
中级用户
  
积分 253
发帖 112
注册 2005-12-20
状态 离线
|
『第 30 楼』:
使用 LLM 解释/回答一下
谢谢你 我用xp xp2 测试 可以了
Last edited by beyoungse on 2007-7-9 at 10:28 PM ]
Thank you. I tested with XP XP2 and it works.
Last edited by beyoungse on 2007-7-9 at 10:28 PM ]
|
|
2007-7-9 22:17 |
|