As requested here is my code...
Private Sub Add_Record(ByVal source As Object, ByVal e As _ System.IO.FileSystemEventArgs)
Dim en As New CultureInfo("en-US")
Thread.CurrentThread.CurrentCulture = en
Dim uFile As String = e.Name
Dim TheDate As String =...
First, I am a VB/ADO newbie so type S L O W L Y when answering please.
I have collected and modified some code that watches folders and when a file arrives in a watched folder it writes the file name and date to a row in an Excel database using Insert into.
It works OK until I open the DB and...
Does anyone know of a program that will do all of the follwing over a VPN...
Remote administer
File transfer to and from mapped drives
Allow printing a file to a printer at another location.
If not, is there another way to do all these?
John
1 sure way to cure this is to get XP!
When I had ME I had to reboot 1-2 times per week to temporarily cure this slow down problem. Never could find a cause or a pattern to it.
Since I got XP I've had no problems.
My opinion ME = Junk
John
Yup, that's what I did in VB6, delete the form, Sub Main in module and so forth. But when I try this in .Net it says it can't find a "Valid Sub Main()" and to add it to the class declaration. How do I do this?
John
Thanks
I'm still just learning so bear with my stupid questions.
What code should be in this invisible form to run my program code which I currently have in a module?
John
All the books and tutorials always show you how to write a program starting from a form. I want to write an EXE that runs just by double clicking a desktop shortcut to it, without any forms at all. What must I do to accomplish this?
I'm using VB.Net by the way.
John
I'm automatically transfering files from a local folder to a similarly named folder on the host. But, since the return value of the FileXferToHost command only indicates if the command executed or not, I can not be sure the file actually transfered.
My only idea is to attempt to transfer the...
AmeriTouch
I'm still a little green when it comes to VB but here goes nothing...
You are correct that AwConnect pretty much always returns True. It seems that this only indicates that the command line was run and has no real bearing on the actual success or failure of the command itself. This is...
Both the folder and file are set to archive only.
I take it both of you have copy/moved files using the FSO commands before with out this problem.
John
strongm
I promise this is the last ime I'll bother you on this.
I erased the _log.txt files and ran it again with the same "Run-time error 70. Permission Denied" error. I'm running it from within VB, would this mess it up?
When the error occurs chosing the "Debug" button...
Strongm
Yes, quite sure, since when I comment out those lines the errors do not appear. Also, when I replaced those lines with a DOS string followed by a Shell command to perform the copy the program did copy one of the files and no errors appeared (I believe it only copied one file due to DOS...
How do I get around a Run-time error 70 "Permission Denied" when I try to run a fso.copy(filedest) or fso.MoveFile
file, destpath command (where fso is equal to a valid file name). Here is the actual code (I'm a newbie so be gentle)..
It is not a security issue since drive F: is a...
Thanks for the responses.
I have administrator rights on the server where both the source and destination folders reside and permissions on these folders is Everyone/Full and I can get a file to copy with a DOS command string and the Shell command. (just one though, I think it might be a folder...
How do I get around a Run-time error 70 "Permission Denied" when I try to run a fso.copy(filedest) or fso.MoveFile
file, destpath command (where fso is equal to a valid file name). Here is the actual code (I'm a newbie so be gentle)..
Public LogTemp As Object
Public fso As Object...
Can anyone tell me if and how this can be done? I'm running an EXE on the remote machine that calls the host and transfers files to a drive that is a mapped drive on the host (another machine on the host's network). This works fine unless the drive is not mapped of course.
How can I check to see...
Lodis
I had the same problem and discovered I had not made the directory I was transfering to on the Host. Make sure the paths on both ends exsist and that your spelling is correct.
John
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.