标签 - 命令

dos 命令    2019-03-24 13:08:17    27    0    0

Blat 是一个命令行发邮件的小工具,仅支持简单的SMTP协议,需要SMTP服务器的支持。
据说现在新申请的邮箱已经不支持SMTP服务了,是为了抑制垃圾邮件而采取的措施。
但是,Blat也是一个非常方便的小工具,基本上可以满足一般人的需求。

提供下载链接地址:

blat262.full.zip(Blat.exe V2.6.2、Blat.dll V2.6.2、Blat.lib )
http://d.namipan.com/d/31fffda6a989e411ea9bf964ee43e02ec9c343fb3b4e0200
blat262.source.zip(Blat V2.6.2 源码)
http://d.namipan.com/d/18c4c3f32d4e57431635a37d397c96feefcb54014ca30200

简单使用方法:

在控制台中切换到Blat.exe V2.6.2文件所在地址(仅需Blat.exe文件);

配置Blat的SMTP服务器:

blat -install sever usr try port [profile]
163邮箱举例:
blat -install smtp.163.com user@163.com 3 25
其中的smtp.163.com是163的smtp服务器地址;user@163.com是自己的邮箱名,3是指尝试发送的次数,25是端口号;
[profile]指的是这个配置文件的名称,可以不填,也可以自己用一个名字,等到发送邮件的时候,就可以使用-p选项来指定配置,如果同时使用多个邮箱的话,这个就很方便了。

发送邮件:

blat C:/mail.txt -to demo@demo.com -attach "C:/fujia.txt" -s "zhuti" -u user@163.com -pw password -charset Gb2312
其中的mail是写好的邮件文件(邮件正文,已文件方式保存),-to demo@demo.com是收件人的地址,-attach "C:/fujia.txt"是附件地址,-s "zhuti"主题,

mongodb 命令    2019-03-24 13:08:17    26    0    0
  1. MongoDb 命令查询所有数据库列表
  2. CODE:
  3. > show dbs
  4. 如果想查看当前连接在哪个数据库下面,可以直接输入db
  5. CODE:
  6. > db
  7. Admin
  8. 想切换到test数据库下面
  9. CODE:
  10. > use test
  11. switched to db test
  12. > db
  13. Test
  14. 想查看test下有哪些表或者叫collection,可以输入
  15. CODE:
  16. > show collections
  17. system.indexes
  18. user
  19. 想知道mongodb支持哪些命令,可以直接输入help
  20. CODE:
  21. > help
  22. Dos代码 收藏代码
  23. HELP
  24. show dbs show database names
  25. show collections show collections in current database
  26. show users show users in current database
  27. show profile show most recent system.profile entries with time >= 1ms
  28. use <db name> set curent database to <db name>
  29. db.help() help on DB methods
  30. db.foo.help() help on collection methods
  31. db.foo.find() list objects in collection foo
  32. db.foo.find( { a : 1 } ) list