about files

  • Thread starter Thread starter Cor Ligthert
  • Start date Start date
C

Cor Ligthert

Yoshita,

Are you sure that you are using VBNet, this sounds as ASP not ASPNET

Cor
 
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 said:
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?
 
yoshitha said:
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
 
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 :)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads


Back
Top