Solved

Win 95 to Win NT conversion problems with VB

Posted on 1999-01-27
3
128 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Introduction In a recent article (http://www.experts-exchange.com/A_7811-A-Better-Concatenate-Function.html) for the Excel community, I showed an improved version of the Excel Concatenate() function.  While writing that article I realized that no o…
Background What I'm presenting in this article is the result of 2 conditions in my work area: We have a SQL Server production environment but no development or test environment; andWe have an MS Access front end using tables in SQL Server but we a…
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…

929 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

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now