名称:快速切换天财商龙门店后台

作者:landv

时间:2015年8月21日

功能:快速切换天财商龙门店后台

环境:VB6.0

注:懒的一行一行修改文件了,直接覆盖配置文件,Tcgem.ini

只能反编译喽,delphi7开发的东东。直接跳过伺服,省得IP不统一,没法使用。

 Private Type PROCESSENTRY32
dwSize As Long
cntUsage As Long
th32ProcessID As Long
th32DefaultHeapID As Long
th32ModuleID As Long
cntThreads As Long
th32ParentProcessID As Long
pcPriClassBase As Long
dwFlags As Long
szExeFile As String *
End Type
Private Declare Function CreateToolhelp32Snapshot Lib "kernel32" (ByVal dwFlags As Long, ByVal th32ProcessID As Long) As Long
Private Declare Function Process32First Lib "kernel32" (ByVal hSnapShot As Long, lppe As PROCESSENTRY32) As Long
Private Declare Function Process32Next Lib "kernel32" (ByVal hSnapShot As Long, lppe As PROCESSENTRY32) As Long
Private Declare Function OpenProcess Lib "kernel32" (ByVal dwDesiredAccess As Long, ByVal blnheritHandle As Long, ByVal dwAppProcessId As Long) As Long
Private Declare Function TerminateProcess Lib "kernel32" (ByVal ApphProcess As Long, ByVal uExitCode As Long) As Long
Private Declare Sub CloseHandle Lib "kernel32" (ByVal hPass As Long)
Private Const TH32CS_SNAPPROCESS = &H2&
Private Sub KillProcess(sProcess As String) 'kill进程
Dim lSnapShot As Long
Dim lNextProcess As Long
Dim tPE As PROCESSENTRY32
lSnapShot = CreateToolhelp32Snapshot(TH32CS_SNAPPROCESS, &)
If lSnapShot <> - Then
tPE.dwSize = Len(tPE)
lNextProcess = Process32First(lSnapShot, tPE)
Do While lNextProcess
If LCase$(sProcess) = LCase$(Left(tPE.szExeFile, InStr(, tPE.szExeFile, Chr()) - )) Then
Dim lProcess As Long
Dim lExitCode As Long
lProcess = OpenProcess(, False, tPE.th32ProcessID)
TerminateProcess lProcess, lExitCode
CloseHandle lProcess
End If
lNextProcess = Process32Next(lSnapShot, tPE)
Loop
CloseHandle (lSnapShot)
End If
End Sub Private Sub Command1_Click(Index As Integer)
Label1.Caption = "目前切换状态:三丰"
FileCopy App.Path & "\landv\三丰\Tcgem.ini", App.Path & "\Tcgem.ini"
Call KillProcess("pTCB.exe")
Dim str
str = App.Path '将当前路径赋给字符串
Shell str & "\pTCB.exe" '打开pTCB.exe软件 End Sub Private Sub Command2_Click()
Label1.Caption = "目前切换状态:中银"
FileCopy App.Path & "\landv\中银\Tcgem.ini", App.Path & "\Tcgem.ini"
Call KillProcess("pTCB.exe")
Dim str
str = App.Path '将当前路径赋给字符串
Shell str & "\pTCB.exe" '打开pTCB.exe软件
End Sub Private Sub Command3_Click() Label1.Caption = "目前切换状态:裕华"
FileCopy App.Path & "\landv\裕华\Tcgem.ini", App.Path & "\Tcgem.ini"
Call KillProcess("pTCB.exe")
Dim str
str = App.Path '将当前路径赋给字符串
Shell str & "\pTCB.exe" '打开pTCB.exe软件
End Sub Private Sub Command4_Click()
Label1.Caption = "目前切换状态:小厨"
FileCopy App.Path & "\landv\小厨\Tcgem.ini", App.Path & "\Tcgem.ini"
Call KillProcess("pTCB.exe")
Dim str
str = App.Path '将当前路径赋给字符串
Shell str & "\pTCB.exe" '打开pTCB.exe软件
End Sub Private Sub Command5_Click() Label1.Caption = "目前切换状态:红旗"
FileCopy App.Path & "\landv\红旗\Tcgem.ini", App.Path & "\Tcgem.ini"
Call KillProcess("pTCB.exe")
Dim str
str = App.Path '将当前路径赋给字符串
Shell str & "\pTCB.exe" '打开pTCB.exe软件
End Sub Private Sub Command6_Click()
Label1.Caption = "目前切换状态:秀兰"
FileCopy App.Path & "\landv\秀兰\Tcgem.ini", App.Path & "\Tcgem.ini"
Call KillProcess("pTCB.exe")
Dim str
str = App.Path '将当前路径赋给字符串
Shell str & "\pTCB.exe" '打开pTCB.exe软件
End Sub Private Sub Command7_Click() Label1.Caption = "目前切换状态:北大"
FileCopy App.Path & "\landv\北大\Tcgem.ini", App.Path & "\Tcgem.ini"
Call KillProcess("pTCB.exe")
Dim str
str = App.Path '将当前路径赋给字符串
Shell str & "\pTCB.exe" '打开pTCB.exe软件
End Sub Private Sub Command8_Click()
Label1.Caption = "目前切换状态:小鱼"
FileCopy App.Path & "\landv\小鱼\Tcgem.ini", App.Path & "\Tcgem.ini"
Call KillProcess("pTCB.exe")
Dim str
str = App.Path '将当前路径赋给字符串
Shell str & "\pTCB.exe" '打开pTCB.exe软件
End Sub

快速切换天财商龙门店后台.VB6.0的更多相关文章

  1. 金蝶核算项目余额表卡号余额与天财商龙CRM卡号余额对比

    金蝶核算项目余额表卡号余额与天财尚龙CRM卡号余额对比 由于历史遗留问题,财务一直不调账,修改核算科目卡号与天财商龙CRM系统一直,只能用VBA把卡号前缀修改成两边一致. 再通过,Power BI D ...

  2. 天财商龙SQL查询ID登陆POS情况

    SELECT * FROM [tcgem_client0001].[dbo].[TCB_POS] ' --查询ID登陆POS情况

  3. 【win8技巧】win8快速切换后台应用

    今天闲着没事来介绍下win8的使用技巧,不得不说win8把PC带入了Pad时代. 第一招:Win + Tab 在屏幕的最左边就会出现我们想要的后台应用,类似安卓的长按Home的最近任务. 第二招:Al ...

  4. EasyPlayer RTSP Android安卓播放器实现视频源快速切换

    EasyPlayer现在支持多视频源快速切换了,我们介绍一下是如何实现的. 这个需求通常应用在一个客户端需要查看多个视频源的情况,比如多个监控场景轮播. 由于EasyPlayer的播放端已经放在Fra ...

  5. 多项目并行开发如何做到快速切换——sublime Text3

    sublime text有一个很人性化的功能,就是打开窗口的时候,它会把上一次关闭时的编辑器工作区状态完全复原(不论文件是否已经保存). 只有一个项目的时候,这个功能非常方便,可以保证重启电脑后cod ...

  6. mac平台多个php版本快速切换

    mac平台多个php版本快速切换 要求所有php版本都是由brew安装 使用brew安装php多版本方法 # brew install php56 # brew install php70 安装切换工 ...

  7. 关于微信聊天与朋友圈如何快速切换 Mark

    用微信时,你是否遇到这样的情况.你正刷着朋友圈,享受着各种鸡汤,这时候,你收到一条微信,一看是女王大人,不得不回.你诚恳的回了一条,等了二十秒不见有什么回应,于是就退了出来,进入朋友圈找到那篇没看完的 ...

  8. 一些有用的 Emacs 配置(窗口快速切换、一键透明效果、任意位置删除整行等)

    本篇文章记录的是一些有用的 Emacs 配置,有些是自己原创,有些是借鉴别人(能记起来出处的我放了链接). 规定:C 代表 Ctrl,M 代表 Alt. 1.设置一次跳跃 n 行的快捷键 按 C-M- ...

  9. Android studio多个项目之间怎么实现快速切换?

    Android studio多个项目之间怎么实现快速切换?Android studio中打开的项目太多了,想切换到一个项目很麻烦,怎么才能快速切换到另一个项目中呢?请看下文详细介绍 在对Android ...

随机推荐

  1. JQ基础语法

    empty HTML 代码: <p>Hello, <span>Person</span> <a href="#">and perso ...

  2. TcpListener 示例

    using System; using System.IO; using System.Net; using System.Net.Sockets; using System.Text; class ...

  3. 安装linux工作环境

    1,介绍Vagrant 我们做web开发的时候经常要安装各种本地测试环境,比如apache,php,mysql,redis等等.出于个人使用习惯,可能我们还是比较习惯用windows.虽然说在wind ...

  4. ANSII 与Unicode,Utf8之间的转换

    在项目开发中,我们难免会遇到各种问题,特别是字符直接的转换,这里列举字符直间转换的代码: using namespace std; wstring AnsiiToUnicode(const strin ...

  5. java登录密码效验

    密码校验需求: 1) 密码控制只能输入字母.数字.特殊符号(~!@#$%^&*()_+[]{}|\;:'",./<>?)2) 长度 6-16 位,必须包括字母.数字.特殊 ...

  6. java 图形界面 邮件系统

    将后台的邮件系统使用javaGUI编程来实现,让我们可以在桌面端直接控制邮件的收发功能. 一.实现邮箱的登陆功能 邮件系统使用smtp协议发送邮件,使用POP3协议或者IMAP协议来收取邮件.SMTP ...

  7. 第四章 android 命名规范和编码规范

    书里面讲的比较常见,单个人也是有不同的观点: 因为android绝大部分使用java开发的,因此java相关规范适用于android: Google Style: 英文地址:http://google ...

  8. 小程序--改变子级别页面导航栏信息 / navigationBarTitleText

    微信小程序在公共文件app.json中设置了导航栏相关样式如下: 其中  navigationBarTitleText 为设置导航栏名称,若是想子级页面和父页面的header页面不同,则在子级文件中新 ...

  9. 第四十七节,random 随机数模块

    random 随机数模块格式: import random 引入随机模块文件 random.randrange(65,91) 调用随机函数random.randrange(随机数开始范围,随机数结束范 ...

  10. js--事件对象的理解1

    在触发DOM上的某个事件时,会产生一个事件对象event.这个对象中包含着所有与事件有关的信息.包括导致事件的元素,事件的类型以及其他与特定事件相关的信息. 举例鼠标操作导致的事件对象中,会包含鼠标位 ...