17 12
发新话题
打印

help me !!!!

help me !!!!

能不能用aw 来判断机器所用的系统呢?如果这样就可以来调用程序了(事先我做两个程序,一个是针对win98 一个是针对win2k )这样不就解决了么,
我的意思就是。做两个程序。一个是在win98下运行的,一个是在win2000下运行的。如果机器测试出来的是win98系统。那就运行第一个
如果是测试出来是 win2k那就运行第二个。
帮助

TOP

help me !!!!

M_GetWinVer() 获取Windows版本。
M_GetWinVerNO() 获取Windows版本号。
M_GetProductName() 获取Windows的产品名称。
在我给你的函数里面都由,看看里面的范例

TOP

help me !!!!

不用这么麻烦!
用getOSDirectory() 获得系统目录路径字符串
然后判断是否存在子串windows还是winnt
其中windows为win98系统,而winnt就是w2k系统

TOP

help me !!!!

x:=getOSDirectory()
if FileType(y:=x^"\\windows")=0 then
    JumpOutReturn(FileLocation^"main\\win98.exe")
   else
    if FileType(y:=x^"\\winnt")=0 then
    JumpOutReturn(FileLocation^"main\\win2000.exe")
    end if
end if
Cover()
Quit()
看看这么样对不对。怎么我打包的时候出错。是fileio.x32.拒绝访问?

TOP

help me !!!!

x:=getOSDirectory()
sysname:=SubStr(x,RFind("\\\\",x)+1,CharCount(x))
if sysname=windows then
    ......
else
    if sysname=winnt then
        ....
    end if
end if  

TOP

help me !!!!

x:=UpperCase(getOSDirectory()) if Find("WINDOWS",x)<>0 then JumpOutReturn(FileLocation^"main\\win98.exe") else if Find("WINNT",x)<>0 then JumpOutReturn(FileLocation^"main\\win2000.exe") end if end if

TOP

help me !!!!

如果哪个变态安装win98的时候,把系统名改成了winnt,那可怎么办? 嘿嘿

TOP

help me !!!!

呵呵。。还没考虑到这个问题。。西西。。那就用你的方法吧。。

TOP

help me !!!!

洲洲。你给的这个程序测试了。运行的时候他总是先检测第一个if 语句。然后执行。这是什么原因呢?
rock 的这个我用了。直接就通过了。。这两者有什么区别呢?
嘿嘿。。。洲洲。把你这阵子的作品给我look 、look 一下。。^__^

TOP

help me !!!!

梅干超人,把冷血的这样修改看看:
x:=UpperCase(getOSDirectory())
sysname:=SubStr(x,RFind("\\\\",x)+1,CharCount(x))
if sysname="WINDOWS" then
   JumpOutReturn(FileLocation^"main\\win98.exe")
else
   if sysname="WINNT" then
       JumpOutReturn(FileLocation^"main\\win2000.exe")
   end if
end if  

TOP

 17 12
发新话题