473,507 Members | 8,335 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Scripting.FileSystemObject"

Hi all

when I execute the following VB6 code in Windows 2000 and
as an Administrator, everything is working fine.

Project->References->"Microsoft Scripting Runtime" and
scrrun.dll is located in C:\WINNT\System32

Sub Main()
Dim fs As FileSystemObject

Set fs = CreateObject("Scripting.FileSystemObject")
Set a = fs.CreateTextFile("c:\testfile.txt", True)
a.WriteLine ("This is a test.")
a.Close
End Sub

The problem is that when i try to execute it as a
Restricted User i get the message :

"Run-time error '-21470024770 (8007007e)'
Automation error
The specified module could not be found"

Can anyone has a solution to that?

Nov 20 '05 #1
2 18002
Hi

You should post on VB 6 newsgroup...

Anyway, if the component is installed only for the Administrator, it cant be
found by another user...
I guess you should register the component for that user if the user have the
permission to register components

Crirus

--

------------------------------
If work were a good thing, the boss would take it all from you

------------------------------

"Stavros" <SP***********@art-cad.gr> wrote in message
news:0f****************************@phx.gbl...
Hi all

when I execute the following VB6 code in Windows 2000 and
as an Administrator, everything is working fine.

Project->References->"Microsoft Scripting Runtime" and
scrrun.dll is located in C:\WINNT\System32

Sub Main()
Dim fs As FileSystemObject

Set fs = CreateObject("Scripting.FileSystemObject")
Set a = fs.CreateTextFile("c:\testfile.txt", True)
a.WriteLine ("This is a test.")
a.Close
End Sub

The problem is that when i try to execute it as a
Restricted User i get the message :

"Run-time error '-21470024770 (8007007e)'
Automation error
The specified module could not be found"

Can anyone has a solution to that?

Nov 20 '05 #2
* "Stavros" <SP***********@art-cad.gr> scripsit:
when I execute the following VB6 code in Windows 2000 and
as an Administrator, everything is working fine.

Project->References->"Microsoft Scripting Runtime" and
scrrun.dll is located in C:\WINNT\System32

Sub Main()
Dim fs As FileSystemObject

Set fs = CreateObject("Scripting.FileSystemObject")
Set a = fs.CreateTextFile("c:\testfile.txt", True)
a.WriteLine ("This is a test.")
a.Close
End Sub

The problem is that when i try to execute it as a
Restricted User i get the message :


This is a VB.NET group. Please turn to one of the VB Classic groups
(microsoft.public.vb.*).

--
Herfried K. Wagner
MVP · VB Classic, VB.NET
<http://www.mvps.org/dotnet>

<http://www.plig.net/nnq/nquote.html>
Nov 20 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
7095
by: Lin Ma | last post by:
Greetings, Is it possbile to check a file exist without using Server.CreateObject("Scripting.FileSystemObject") in asp page?? The reason is our hosting company turn that function off for...
5
2340
by: Andrew | last post by:
Hi, experts, My system has a problem when I invoke the fileSystemObject to create a text file (it worked ok long before.) The asp seems running, but actually never finishes. I don't know what I...
3
3422
by: bt | last post by:
I am just beginning with asp and have gotten an error that I need some help with. I posted a pair of files to an online ASP host server. The files are in the same directory; one is readfile.asp...
4
16542
by: MoF | last post by:
Hello! I have for a long time used the line: Set FS=Server.CreateObject("Scripting.FileSystemObject") in my ASP code. Suddenly one day this week it stopped working and I now get the error: ...
1
2058
by: chsmith | last post by:
I'm calling a .net / c# .dll from .ASP via Server.CreateObject(). I regasm, gacutil /i and all runs fine on XP SP1 or older. SP2 registry subracts System (??) from the registry root nodes and...
1
9372
by: pbd22 | last post by:
Hi - I have code that automatically fills tabs on a page. In some cases, a URL path won't be correct (the folder and files don't exist) and, in these cases, I want to catch these exceptions and...
3
7620
by: =?Utf-8?B?VG9kZA==?= | last post by:
trying to access files located on another server within the network. the folder is shared out and we created a virtual directory as well. The error is Microsoft VBScript runtime error '800a004c'...
7
6441
by: Benjamins via AccessMonster.com | last post by:
Hi, I have meet a problem for CreateObject("Scripting.FileSystemObject"). I uses this code to get the information of the harddisk I have 10 user using the same code. All where working fine...
0
899
by: Steve Holden | last post by:
The Linux Journal readers apparently suffer the same ambiguity as the rest of us when it comes to defining what the difference between a scripting language and a programming language. They do,...
0
7109
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
7313
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,...
1
7029
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
7481
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
5619
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,...
1
5039
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
3190
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
1537
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
1
758
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.