快速切换天财商龙门店后台.VB6.0
名称:快速切换天财商龙门店后台
作者: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的更多相关文章
- 金蝶核算项目余额表卡号余额与天财商龙CRM卡号余额对比
金蝶核算项目余额表卡号余额与天财尚龙CRM卡号余额对比 由于历史遗留问题,财务一直不调账,修改核算科目卡号与天财商龙CRM系统一直,只能用VBA把卡号前缀修改成两边一致. 再通过,Power BI D ...
- 天财商龙SQL查询ID登陆POS情况
SELECT * FROM [tcgem_client0001].[dbo].[TCB_POS] ' --查询ID登陆POS情况
- 【win8技巧】win8快速切换后台应用
今天闲着没事来介绍下win8的使用技巧,不得不说win8把PC带入了Pad时代. 第一招:Win + Tab 在屏幕的最左边就会出现我们想要的后台应用,类似安卓的长按Home的最近任务. 第二招:Al ...
- EasyPlayer RTSP Android安卓播放器实现视频源快速切换
EasyPlayer现在支持多视频源快速切换了,我们介绍一下是如何实现的. 这个需求通常应用在一个客户端需要查看多个视频源的情况,比如多个监控场景轮播. 由于EasyPlayer的播放端已经放在Fra ...
- 多项目并行开发如何做到快速切换——sublime Text3
sublime text有一个很人性化的功能,就是打开窗口的时候,它会把上一次关闭时的编辑器工作区状态完全复原(不论文件是否已经保存). 只有一个项目的时候,这个功能非常方便,可以保证重启电脑后cod ...
- mac平台多个php版本快速切换
mac平台多个php版本快速切换 要求所有php版本都是由brew安装 使用brew安装php多版本方法 # brew install php56 # brew install php70 安装切换工 ...
- 关于微信聊天与朋友圈如何快速切换 Mark
用微信时,你是否遇到这样的情况.你正刷着朋友圈,享受着各种鸡汤,这时候,你收到一条微信,一看是女王大人,不得不回.你诚恳的回了一条,等了二十秒不见有什么回应,于是就退了出来,进入朋友圈找到那篇没看完的 ...
- 一些有用的 Emacs 配置(窗口快速切换、一键透明效果、任意位置删除整行等)
本篇文章记录的是一些有用的 Emacs 配置,有些是自己原创,有些是借鉴别人(能记起来出处的我放了链接). 规定:C 代表 Ctrl,M 代表 Alt. 1.设置一次跳跃 n 行的快捷键 按 C-M- ...
- Android studio多个项目之间怎么实现快速切换?
Android studio多个项目之间怎么实现快速切换?Android studio中打开的项目太多了,想切换到一个项目很麻烦,怎么才能快速切换到另一个项目中呢?请看下文详细介绍 在对Android ...
随机推荐
- NYOJ-102 次方求模
次方求模 时间限制:1000 ms | 内存限制:65535 KB 难度:3 描述 求a的b次方对c取余的值 输入 第一行输入一个整数n表示测试数据的组数(n<100)每组测试只有一 ...
- H264的coded_block_pattern编码块模式
1 词汇约定 CodedBlockPatternLuma:一个宏块的亮度分量的coded_block_pattern CodedBlockPatternChroma:一个宏块的色度分量的coded_b ...
- 如何在IIS8.5上面部署php
一.开启,设置win8.1自带的IIS 8.5组件服务器. 进入控制面板,选择程序和功能,打开或关闭Windows 功能,找到Internet information services,分别开启FTP ...
- {java学习}[第一章]软件开发概述(2017.1.11).
- jq siblings()的强大之处
在事件处理的方法里 经常遇到自己做什么效果 其他节点就做反之效果 如果用判断 可处理 但代码太啰嗦不够简单 siblings()就可以解决这一切的麻烦 意思就是 除啦我之外的其他兄弟节点 这样可以做2 ...
- iOS 富文本点击事件
#import "ViewController.h" #define font 17 @interface ViewController ()<UITextViewDeleg ...
- Android Game Examples
Game2 using UnityEngine; using System.Collections; public class Game2_Player : MonoBehaviour { publi ...
- 二十四、oracle pl/sql 变量
一.变量介绍在编写pl/sql程序时,可以定义变量和常量:在pl/sql程序中包括有:1).标量类型(scalar)2).复合类型(composite) --用于操作单条记录3).参照类型(refer ...
- 《学习的艺术》 (The Art of Learning)——划小圈 (Making Smaller Circles)
“……我对象棋.武术以及范围更广的整个学习过程这三者的核心及相互关系的研究在一定程度上是受到了罗伯特.波席格<摩托车维护艺术>一书的启发.我决不会忘记指导我今后数年学习方式的那一幕.波席格 ...
- 【.NET】转载:使用FileStream批量上传文件。
先看效果图: 代码(没什么难度的一个案例,进度条为第三方控件ProgressODoom.dll,自己去网上下.) using System; using System.Collections.Gene ...