Solved

Win 95 to Win NT conversion problems with VB

Posted on 1999-01-27
3
127 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
Comment Utility
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
Comment Utility
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
Comment Utility
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

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

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…
This article describes some techniques which will make your VBA or Visual Basic Classic code easier to understand and maintain, whether by you, your replacement, or another Experts-Exchange expert.
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…

763 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

6 Experts available now in Live!

Get 1:1 Help Now