Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

Win 95 to Win NT conversion problems with VB

Posted on 1999-01-27
3
Medium Priority
?
135 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
3 Comments
 
LVL 14

Accepted Solution

by:
waty earned 300 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

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

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…
If you need to start windows update installation remotely or as a scheduled task you will find this very helpful.
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…
Suggested Courses

604 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