Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  1. martyau

    mapping drives

    Alternative to API calls you can use the shell command to produce a file of network information and then re use shell to map a drive. batch commands that you need are net view /? and net use /? Use of if exists in batch files is quite usefull to check if files do exist or not.
  2. martyau

    Creating an Access Table Problem

    I've never created a table this but Notice in your line tbl.Columns.Append "Column 1", adVarWChar, 40 you seem to have a space in the column name, which access doesn't allow also you can't have duplicate column names in access which could be why appending the counter to the field...
  3. martyau

    running a dos program through vb

    Extra Note on using the shell command is after executing the shell command VB continues to execute statements so doesn't wait to see if the shell process finished or not. If you need to wait for the process to finish then two options are to have a do loop which just keeps looping until a...
  4. martyau

    Check if file exists?

    in line with Merlijn function its also quite handy to have a isFileWritable function as well. Just open the file for append if the file isn't writable the an error will be raised and so the function returns false. There is also some way to get environment variables in VB (cant remember what it...
  5. martyau

    Populate Array

    If you do need the array then have a look at the Array function in the VB 6 help
  6. martyau

    I need some help on batch file

    This may help but to avoid using a windows program try the following, cant remember 98 but XP provides lots of good command line options for most commands. Single bas file in the project. Sub main is something like the following Sub Main Dim S as String while s <> &quot;&quot; s =...

Part and Inventory Search

Back
Top