Solved

Win 95 to Win NT conversion problems with VB

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

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

There are many ways to remove duplicate entries in an SQL or Access database. Most make you temporarily insert an ID field, make a temp table and copy data back and forth, and/or are slow. Here is an easy way in VB6 using ADO to remove duplicate row…
I’ve seen a number of people looking for examples of how to access web services from VB6.  I’ve been using a test harness I built in VB6 (using many resources I found online) that I use for small projects to work out how to communicate with web serv…
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…
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…

792 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