Hi,
In my application am using scrrun.dll to create files and folders and also
to copy the files from one folder to another folder.
Using my application i created 2 folders for eg folder1 and folder2.
In folder1 i've some files(i created these files using my application only
these are .rtf files) and on a particular moment i've to move the file in
the folder1 to folder2.
I wrote the code to copy the file from folder1 to folder2.
If mFSO.FileExists(mFile.FullName) Then
mFSO.CopyFile(mnode & filename, Application.StartupPath & "\SignInFolder",
True)
mFSO.CopyFile(mFile.FullName, strFilePath, False)
End If
but while executing the application am getting error like this
"CTL_e_PermissionDenied"
why am getting this error
If u know plz tell me
Thanx in advance
yoshitha 7 2015
Yoshita,
Are you sure that you are using VBNet, this sounds as ASP not ASPNET
Cor
"yoshitha" <gu**********@rediffmail.com>
... Hi, In my application am using scrrun.dll to create files and folders and also to copy the files from one folder to another folder. Using my application i created 2 folders for eg folder1 and folder2. In folder1 i've some files(i created these files using my application only these are .rtf files) and on a particular moment i've to move the file in the folder1 to folder2. I wrote the code to copy the file from folder1 to folder2. If mFSO.FileExists(mFile.FullName) Then
mFSO.CopyFile(mnode & filename, Application.StartupPath & "\SignInFolder", True)
mFSO.CopyFile(mFile.FullName, strFilePath, False)
End If
but while executing the application am getting error like this
"CTL_e_PermissionDenied"
why am getting this error If u know plz tell me
Thanx in advance yoshitha
"yoshitha" <gu**********@rediffmail.com> schrieb: I wrote the code to copy the file from folder1 to folder2. If mFSO.FileExists(mFile.FullName) Then
mFSO.CopyFile(mnode & filename, Application.StartupPath & "\SignInFolder", True)
mFSO.CopyFile(mFile.FullName, strFilePath, False)
End If
but while executing the application am getting error like this
"CTL_e_PermissionDenied"
Does this occur when you use .NET's 'System.IO.File' class or 'FileCopy'
too?
--
Herfried K. Wagner [MVP]
<URL:http://dotnet.mvps.org/>
"yoshitha" <gu**********@rediffmail.com> wrote in message
news:%2****************@TK2MSFTNGP15.phx.gbl... Hi, In my application am using scrrun.dll to create files and folders and also to copy the files from one folder to another folder. Using my application i created 2 folders for eg folder1 and folder2. In folder1 i've some files(i created these files using my application only these are .rtf files) and on a particular moment i've to move the file in the folder1 to folder2. I wrote the code to copy the file from folder1 to folder2. If mFSO.FileExists(mFile.FullName) Then
mFSO.CopyFile(mnode & filename, Application.StartupPath & "\SignInFolder", True)
mFSO.CopyFile(mFile.FullName, strFilePath, False)
End If
but while executing the application am getting error like this
"CTL_e_PermissionDenied"
why am getting this error If u know plz tell me
Thanx in advance yoshitha
Am using vb.net Ya am getting the same error when am using .net "system.io.file" and
scrrun.dll' copyfile method
..
And Wangar as suggested me one url but am unable to understand that language
Plz help me out
Its very urgent.
thanx in advance
yosgitha
"yoshitha" <gu**********@rediffmail.com> schrieb: Ya am getting the same error when am using .net "system.io.file" and scrrun.dll' copyfile method
Then you maybe really don't have rights to copy the file...
And Wangar as suggested me one url but am unable to understand that language
What URL?
--
Herfried K. Wagner [MVP]
<URL:http://dotnet.mvps.org/>
Hi I wanted to add a new reply however the post dropdown provided in this
medium is not working so here goes my related issue
ERROR - CTL_E_PERMISSIONDENIED
On line fso.CopyFolder(path, destination, True)
Code is to copy directory and subfolders from one web server to another. The
user has permissions to both servers, and exe is installed on that admin
profile.
Any suggestions ?
Thx richard new MCAD :)
"Herfried K. Wagner [MVP]" wrote: "yoshitha" <gu**********@rediffmail.com> schrieb: Ya am getting the same error when am using .net "system.io.file" and scrrun.dll' copyfile method
Then you maybe really don't have rights to copy the file...
And Wangar as suggested me one url but am unable to understand that language
What URL?
-- Herfried K. Wagner [MVP] <URL:http://dotnet.mvps.org/>
This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
by: lawrence |
last post by:
2 Questions:
1.) Can anyone think of a way to speed up this function? It is
terribly slow. I plan to reduce the number of directories to 3, which
I guess will speed it up in the end.
2.) This...
|
by: Albert Tu |
last post by:
Hi,
I am learning and pretty new to Python and I hope your guys can give me
a quick start.
I have an about 1G-byte binary file from a flat panel x-ray detector; I
know at the beggining there...
|
by: fdsl ysnh |
last post by:
--- python-list-request@python.orgдµÀ:
> Send Python-list mailing list submissions to
> python-list@python.org
>
> To subscribe or unsubscribe via the World Wide Web,
> visit
>...
|
by: Sarah Tanembaum |
last post by:
Beside its an opensource and supported by community, what's the fundamental
differences between PostgreSQL and those high-price commercial database (and
some are bloated such as Oracle) from...
|
by: ccdrbrg |
last post by:
This is a rather general subject, I apologize.
I am new to XHTML, CSS, et al and I am having trouble
understanding the DTD and xml namespace declarations.
For example:
<!DOCTYPE html PUBLIC...
|
by: PCHOME |
last post by:
Hi!
Would someone please help me thess C error(in gcc on Linux)?
The compiler continues to give me:
readLP.o: In function `Input_Problem':
readLP.o(.text+0x0): multiple definition of...
|
by: John Salerno |
last post by:
I'm a little confused. Why doesn't s evaluate to True in the first part,
but it does in the second? Is the first statement something different?
False
print 'hi'
hi
Thanks.
|
by: Venkatesh |
last post by:
Hello All,
I have couple of doubts regarding the concept of on-demand javascript
loading using javascript code. I could see on the net different
techniques for achieving this - techniques like:...
|
by: James |
last post by:
Today my friend ask me a question about setting logsecond to -1. The
following sentences were copied from DB2 InforCenter:
"By setting logsecond to -1, you will have no limit on the size of the...
|
by: bowlderyu |
last post by:
Hello, all.
I meet a question about compiling files.
Eg., I have three files named myfile.h, myfile.c and the main.c file,
and there is a function, ex, void myfun(...).
If I put myfun(...) in...
|
by: Charles Arthur |
last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
|
by: ryjfgjl |
last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
|
by: BarryA |
last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
|
by: nemocccc |
last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
|
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...
|
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...
|
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...
|
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...
|
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...
| |