Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
Hi,
many thanks for the peice of code as below: net use d:/delete/y net use d:"\bft-123456w\d$"/PERSISTENT:yes pause wherby d:/ is the Drive letter for the Belfast PC? without coming over as thick... you said create a file called leerem.bat containing the code above and then execute the .bat file Question 1: Do you mean create an excel file and write the code in the open workbook section and then save the file as leerem with a .bat extension? Question 2: To execute this .bat file would I write the code as follows; Sub bft() dim Y as variant ' would variant be correct? Y=shell(cmd.exe /d D:\leerem.bat",1) more code net use d:delete/y ' to disconnect the drive End sub Regards Lee |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
To Gary's Student | Excel Discussion (Misc queries) | |||
map network drive | Excel Discussion (Misc queries) | |||
To: Gary's Student cell address reply | Excel Discussion (Misc queries) | |||
Is Gary's Student here | Excel Discussion (Misc queries) | |||
Link workbooks-C drive to network drive | Excel Worksheet Functions |