473,512 Members | 15,363 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

code work on Xp but not work on Windows98

8 New Member
Hi all,

I had written one code for opening Exe file after copying the file folder specifyby me.

This code is worked on Window Xp but it gives error on Windows98 as error 5

Help me.Code is given below:

Expand|Select|Wrap|Line Numbers
  1. Private Sub cmdOK_Click()
  2.     On Error GoTo errorhand
  3.     Dim k As Integer
  4.     Dim FS As Object
  5.     Dim strBatfile As String
  6.     Dim ExecutwDOSCommand As ApplicationStartConstants
  7.     Set FS = CreateObject("Scripting.FileSystemObject")
  8.  
  9.     k = FS.CopyFolder("T:\HEMANT1\LABEL FORMAT", "C:\TESTING\LABEL FORMAT")
  10.     If k = 0 Then
  11.         MsgBox "Programs copied on Local Drive", vbExclamation
  12.         strBatfile = "c:\Apg\Run.exe"
  13.         ExecutwDOSCommand = Shell("""" & strBatfile & "")
  14.          Unload Me
  15.         End
  16.     End If
  17. errorhand:
  18.  
  19.     If Err.Number = 76 Then
  20.         MsgBox "Path is not correct get the programs from local machine", vbCritical
  21.         strBatfile = "c:\Apg\Run.exe"
  22.         ExecutwDOSCommand = Shell("""" & strBatfile & "")
  23.         Unload Me
  24.         End
  25.     End If
  26. End Sub
Mar 25 '08 #1
0 869

Sign in to post your reply or Sign up for a free account.

Similar topics

0
2734
by: victor | last post by:
Hi, I used Cookies to store username. In a Windows98 client, I typed some Chinese characters into the login box in login.asp. After submit, in c.asp, the username is stored in the cookies....
10
18618
by: Jesper | last post by:
Does anyone know some c++ code for shutting down windows? I want to write a program using borland c++ builder to shut down windows. --
242
13135
by: James Cameron | last post by:
Hi I'm developing a program and the client is worried about future reuse of the code. Say 5, 10, 15 years down the road. This will be a major factor in selecting the development language. Any...
2
2078
by: bellparis | last post by:
I'm a student who tries to use EliCZ's hooking library, AE5.6. My ultimate purpose which I try to use EliCZ's library is preventing users from copying data by windows clipboard. So I Added...
192
9302
by: Vortex Soft | last post by:
http://www.junglecreatures.com/ Try it and tell me what's happenning in the Microsoft Corporation. Notes: VB, C# are CLS compliant
1
1323
by: prasanna | last post by:
hi, i am developing an activex control for IVRS system on windows 2000 professional platform... the function waveOutReset does not work properly... whenver the system encounters the function...
1
1310
by: Sunil Menon | last post by:
Dear All, My client machine's OS is Windows 98 and IE6.0 sometimes while loading an aspx page the client gets a message "Operation Aborted" and the page does not open...on other machines that are...
1
1204
by: =?Utf-8?B?Q2hhcmxlcyBSUEIgQnJvd24=?= | last post by:
In attempting to defrag my system my computer does not display the %complete or the colored matrix like it used to. I can hear the system operating but all it get is a blank screen or when I post...
1
2133
by: puteraindonesia | last post by:
please give me script and example (with all setting needs), how to connecting vb6 to mysql 5.0 with odbc 2.5 (remote connection) in LAN (os:windows 98). i ussually work with odbc 3.5 and xp os, so...
0
7252
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
7371
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
7432
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
7517
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
5676
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
1
5077
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
4743
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3230
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
1
791
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.