Solved

Win 95 to Win NT conversion problems with VB

Posted on 1999-01-27
3
130 Views
Last Modified: 2006-11-17
I have written VB procedure under WIN 95 which is working perfect, but when I try to run the same procedure under Win NT I get very strange results.

e.g. for "FileCopy source, target" I receive msg "Permission denied" and PC automatically closes all open windows (sometimes it even does a logoff)

When I try to do this Filecopy manually (via DOS Prompt) I have no permission problem ...

Can someone help me ?
0
Comment
Question by:Polvdv
  • 2
3 Comments
 
LVL 14

Accepted Solution

by:
waty earned 100 total points
ID: 1470910
Normally, it should work without any problems., but under NT, do you have the permissions to write in the destination directory?
Take the explorer, and show the directory properties, permissions.

Put your code, I will take a look.

0
 

Author Comment

by:Polvdv
ID: 1470911
Yes I have permission to write in the directory (I am even logged on as an administrator)

Coding : simple filecopy

      FileCopy TempFile, WorkDir & NewName & ".TXT"

All the used variables are filled with correct data gathered before

0
 

Author Comment

by:Polvdv
ID: 1470912
I found the problem myself.
Sorry, but I did give wrong information.
In fact it is not the Filecopy which is causing the problems,
but a previous Macro in MS Word. How stupid of me !!!

I' ll give the points anyway to Waty for the offered help.

0

Featured Post

Instantly Create Instructional Tutorials

Contextual Guidance at the moment of need helps your employees adopt to new software or processes instantly. Boost knowledge retention and employee engagement step-by-step with one easy solution.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction While answering a recent question (http://www.experts-exchange.com/Q_27402310.html) in the VB classic zone, I wrote some VB code in the (Office) VBA environment, rather than fire up my older PC.  I didn't post completely correct code o…
Most everyone who has done any programming in VB6 knows that you can do something in code like Debug.Print MyVar and that when the program runs from the IDE, the value of MyVar will be displayed in the Immediate Window. Less well known is Debug.Asse…
Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…

696 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question