Hello All!
I have a program that uses the following windows api commands and
structures for enumerating and adding printers and drivers to a remote
machine. The program's job is to copy drivers from a print server to a
remote machine and add the drivers and printer to the remote machine's...
Hello All!
I have a program that uses the following windows api commands and
structures for enumerating and adding printers and drivers to a remote
machine. The program's job is to copy drivers from a print server to a
remote machine and add the drivers and printer to the remote machine's...
Sorry about the missing pieces, they are from the API, CleanupAds is just a routine to cleanup variables, here is the rest of the code...
blnDoFatalError is an internal error handler, just replace it with your own...
when you look at the security on the folder, it won't be human readable, it...
I can only receive small files < 20kb. Anything over that will stop about 1k bytes from being completely delivered. The code below shows the loop that should be receiving. The Receive method hangs without Blocking and throws an exception with Blocking on. nothing I have tried will accept the...
Actually I have used this in the past. Sometimes I get lazy and don't want to convert the Declarations myself. http://www.allapi.net/ is the place I use most often.
Thanks again
I am trying to get a handle for GetPrinterDriver with the OpenPrinter function but it keeps crashing VB. I need to be able to open a printer on a network print server so I can access the print driver and programatically install printers on the fly. Here is some of what I am working with...
I have pretty much what 'caf' wrote (using SHBrowseForFolder) in my own code. I am trying to find out exactly where the path info is stored so I can pass it back into one of the stuctures and setup the last opened or default folder.
I don't want to set the root since it will only display the...
After much banging of the head, and hacking apart other's code, I just finished this for myself...enjoy.
Note: this will only set the advanced security settings ofr the folder, still working on the regular security settings,if anyone know how to get to these settings, please help me out...
My program needs to be able to update NTFS folder security on remote machines. I am trying to get the SDDL of a user's SID so I can add an ACE to the file's DACL. I am not able to reference the samlib.dll (figuring that it is the correct one) to access the SAM functions. Am I going about this...
Read/write/change,etc. basically all of them. After some more looking around I found the "Net Functions" and they look promising. I also need to be able to created/delete shared folders.
I have been scouring the API for a way to set/get the properties for a shared folder and have come up with nothing. Hopefully someone can point me in the right direction in my search.
Thanks
Use the file system object but just use the Name property.
Dim fso, f
Set fso = CreateObject("Scripting.FileSystemObject")
Set f = fs.GetFile(filespec)
f.Name = "NewFileName.bat"
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.