473,396 Members | 2,036 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

Path/File Access Error

1
I created a program using VB6 which has many dependency JPG files. All files are installed in the same subfolder folder of Program Files folder using Package and Deployment Wizard. in VB6.
Everything works fine on WinXp Administrator account however I get an error when that account is a Limited Account:
75 -Sub select(QuestionRange- :Path/File access error.

All the files are automatically installed in a subfolder of the Program Files Folder.
How can I get the program to run on a Limited Account? Can I add something in the program code?

I used the following code:
ImgOutput.Picture = LoadPicture(App.Path & "\" & (Val(Data1) & ".jpg"))

I appreciate any feedback.
Thanks
Klaas
May 20 '07 #1
2 12471
Dököll
2,364 Expert 2GB
I created a program using VB6 which has many dependency JPG files. All files are installed in the same subfolder folder of Program Files folder using Package and Deployment Wizard. in VB6.
Everything works fine on WinXp Administrator account however I get an error when that account is a Limited Account:
75 -Sub select(QuestionRange- :Path/File access error.

All the files are automatically installed in a subfolder of the Program Files Folder.
How can I get the program to run on a Limited Account? Can I add something in the program code?

I used the following code:
ImgOutput.Picture = LoadPicture(App.Path & "\" & (Val(Data1) & ".jpg"))

I appreciate any feedback.
Thanks
Klaas
Greetings, klaash!

I am not sure if this is done in code. You can however resolve this issue by setting your administrator access from Limited to Computer Administrator, provide of course you are allowed to do this. I am not certain whether thi is work related.

You may consider adding this to the Networking forum if this does not do it for you...
Jun 5 '07 #2
Killer42
8,435 Expert 8TB
I think there are a couple of possible issues there.
  • For a start, do you know that the user's access is actually the problem, or is that just an assumption? If they are different accounts, then perhaps something else is also different. For example, they could be using shortcuts which start the program in a different directory. There's the directory where the EXE resides, and the "current" directory where you start it. I can never remember which of the two is returned by App.Path, though of course you'd generally expect them to be the same.
  • Is it possible in any way that the user could be trying to load a different image which is not there? I'd suggest some ON ERROR code to display the exact details of what happened, including exactly where in the program (just in case this is actually not the statement producing the error), the value of App.Path and the name of the image it's trying to load.
    Then I would have the limited user try to simply open the JPG file in question, without using your program, just to see what happens.
  • Are both users running the program on the same PC?
  • Could there be different drive mappings so the program can’t find the images? (Probably not, since you’re using App.Path, but I figured it’s worth keeping in mind.)
In short, I recommend gathering more info so you really know what's going on, before trying too hard to solve it.
Jun 5 '07 #3

Sign in to post your reply or Sign up for a free account.

Similar topics

1
by: Theerachet Pratoommanee | last post by:
This is error message I've got. Any suggestion would be appreciated. Server Error in '/WebDirectory' Application. ----------------------------------------------------------------------------...
1
by: Alex | last post by:
Hello, in my company, we have a diagnostic tool for hardware. Depending on the hardware projcet, a different project configuration is needed. The configuration file is written in XML and...
15
by: (Pete Cresswell) | last post by:
I've got a .BAT file that I use for executing various MS Access apps that I wrote way back in the days of 2.0. It's evolved over time, but it still contains a number of possible paths to...
1
by: Winterminute | last post by:
If I try to make any changes to the ASP.NET Portal Starter kit it fails with an access denied error. This was working when I left last week and is failing today. I don't remember changing...
1
by: Scott Vercuski | last post by:
Everyone, I'm lost as to why I'm getting the following Error message on my ..NET application. Here's the error message I'm getting: ...
2
by: Tom Wells | last post by:
I have a little file upload page that I have been able to use to successfully upload files to the C: drive of LocalHost (my machine). I need to be able to upload to a network drive from the intranet...
1
by: Jody Gelowitz | last post by:
We are having an issue in that when trying to read a file that is on Server2 from Server1 (through our ASP.NET project), we receive the error: Access to the path "\\Server2\MyShare\MyFile.tif" is...
3
by: David Thielen | last post by:
Hi; I created a virtual directory in IIS 6.0 and my asp.net app runs fine. But when it tries to write a file I get: Access to the path is denied. - C:\Inetpub\wwwroot\RunReportASP\images ...
1
by: jalupinu | last post by:
My OS is Winxp SP2 and the software I am having trouble with is Maximizer 9.5 Enterprise. It has a Web Portal feature that i am trying to use and followed the instructions to set it up however I keep...
6
by: =?Utf-8?B?UGF1bA==?= | last post by:
I am getting an "Access to the path "xxxx" is denied error. I believe is because the file that I am writing to programatically is being read/written to by another end user. These files have the...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.