Hi,<br>once again i lookin for some help-<br>i want to use the shell to say for instance<br>change the dir,from the default (c:\windows) to c:<br><br>any ideas??<br><br>thanks fer your help<br><br>paul<br>
Use ChDrive to change the default drive and ChDir to change the default folder... or did you have a particular reason you wanted to use Shell?<br> <p> <br><a href=mailto: > </a><br><a href=
Thanks for your reply-<br>In reply to your question:<br><br> i also want to call a program<br><br>what i thought was it would be the same as the shell ordinarily - i.e. - shell("<pathname> <filename or text", vbmaximisedfocus)<br><br>so say I wanted to call the reg code in Windows 95:<br> attrib - etc<br><br>how would i do that???<br><br>Thanks once again.<br><br>Paul...<br><br>
Try:<br><br>InternalDOScmd$ = "attrib -h c:\msdos.sys"<br>Shell "c:\windows\command.com /c " & InternalDOScmd$<br><br>But if you want to get or set a file attribute you should use GetAttr and SetAttr. Almost all of the internal DOS commands have equivalents in VB. Some require a little coding but they all run cleaner and with less overhead than you would encounter by loading additional copies of the command processor.<br> <p> <br><a href=mailto: > </a><br><a href=
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.