Web Hosting Talk







View Full Version : was wondering if any knew how to do this...


cirax
02-14-2003, 05:37 PM
chmod files via visual basic?

I know this is not web based, but it's for web based things such as an ftp client. i have looked at free sources to client and none contain chmod and well I am stuck. If someone could please help me I would highly appreciate it. Thanks.

Rich2k
02-14-2003, 06:30 PM
CHMOD doesn't exist under Windows (which is where you can only use 'true' visual basic). You may be able to under Sun One ASP (if you're talking about VBScript as opposed to Visual Basic).

You can change file permissions via IIS and some admin panels but I've never tried under ASP.

Westech
02-14-2003, 06:38 PM
Are you trying to write a windows ftp client program in visual basic to connect to linux servers and chmod files? There is no built in functionality in visual basic to do this. It would be done by writing the program to send the correct commands to the ftp server.

Have you tried smartftp? ( http://www.smartftp.com/ )
It is a free ftp client that can chmod files.

cirax
02-14-2003, 06:49 PM
Rich2k: I am not talking about asp nor vbs.. simply vb.

Westech: I am referring to a windows based ftp client. I was wanting to use it to connect to my ftp and have just the functions I wanted in the ftp client which includes chmod.

I can pretty much figure out everything BUT chmoding. I was hoping to find someone on this board that either knows how to do so and can assist me/point me in a direction or someone that knew of places to search for something similar to help me.

LizMarr
02-14-2003, 09:05 PM
Originally posted by cirax

Westech: I am referring to a windows based ftp client. I was wanting to use it to connect to my ftp and have just the functions I wanted in the ftp client which includes chmod.



Here's a some Windows based FTP clients that allow CMOD -

Blue Zone FTP (http://www.seagullsw.com)

SmartFTP (http://www.smartftp.com)

WS_FTP (http://www.ipswitch.com)

Some are free, some are eval, all work well.

cirax
02-14-2003, 10:05 PM
No no no, see, I don't want to download or anything. I want to "make my own" so I can put only the functions I want on there.

Please for those who read this, disregard replies that include download "free" or "trial" programs that do this for me and keep in mind that I want to make my own.

Thanks

cirax
02-15-2003, 01:47 AM
:bump: , sorry I really need to know. :eek:

luxline
02-15-2003, 02:04 AM
I've never written a single vb program, however, with visual studio Im quite comfortable. I would suggest looking under sockets, this will allow you to do many remote functions. Dont know if this is available in VB, sorry, just trying to help where I really dont have a clue about what Im taking.

if (!$WHT['$adv_frm']){
$WHT['$usr_post_cnt']++;
}

See, Im a C/perl/php programmer at heart.:)

Ahmad
02-15-2003, 03:16 AM
How are you handling all the other commands?

Are you using plain sockets and with the FTP specifications, or you are using a ready made FTP component?

cirax
02-15-2003, 03:49 AM
Well from looking at other examples and what not, most use the wininet module, so either using that or some other method that you or someone could assist me with.