benbenfishfish

1.新建一个bat文件 记得后缀保存为.bat文件

 

@echo off
setlocal EnableDelayedExpansion

del temp.txt
del lp.vcf

set /a line=1
for /f "tokens=1,2,3,4 delims=," %%a in (lp.csv) do (
	if !line! gtr 1 (
		(echo BEGIN:VCARD)       >> temp.txt
		(echo VERSION:3.0)		 >> temp.txt
		(echo N:;%%a;;;)		 >> temp.txt
		(echo FN:%%a)			 >> temp.txt
		(echo TEL;TYPE=CELL:%%b) >> temp.txt
		(echo ORG:%%c)			 >> temp.txt
		(echo TITLE:%%d)		 >> temp.txt
		(echo END:VCARD)		 >> temp.txt
	)
	set /a line+=1
)

ren temp.txt lp.vcf

  

 

 

 

 2.新建一个cvs文件

 

 

3.随便新建一个文件 ip.vcf 文件

 

 

4.运行 bat文件

 

 

5. 通过notpad 改变这个文件的编码格式

 

 

 

 

 

 

6.发送到手机上比如 微信,企业微信,qq等 然后点打开 或者导入即可

 

 

utf-8编码-bom 的话 安卓手机是不会乱码的不然会乱码

 

分类:

技术点:

相关文章:

  • 2021-04-18
  • 2021-12-13
  • 2021-11-23
  • 2021-08-19
  • 2021-06-14
  • 2021-08-14
  • 2022-12-23
  • 2021-11-30
猜你喜欢
  • 2021-11-13
  • 2022-01-22
  • 2021-10-08
  • 2019-12-11
相关资源
相似解决方案