是不是就是命令行参数呀。用commmand获得
Command Function Example
This example uses the Command function to get the command line arguments in a function that returns them in a Variant containing an array. Function GetCommandLine(Optional MaxArgs)
   'Declare variables.
   Dim C, CmdLine, CmdLnLen, InArg, I, NumArgs
   'See if MaxArgs was provided.
   If IsMissing(MaxArgs) Then MaxArgs = 10
   'Make array of the correct size.
   ReDim ArgArray(MaxArgs)
   NumArgs = 0: InArg = False
   'Get command line arguments.
   CmdLine = Command()
   CmdLnLen = Len(CmdLine)
   'Go thru command line one character
   'at a time.
   For I = 1 To CmdLnLen
      C = Mid(CmdLine, I, 1)
      'Test for space or tab.
      If (C <> " " And C <> vbTab) Then
         'Neither space nor tab.
         'Test if already in argument.
         If Not InArg Then
         'New argument begins.
         'Test for too many arguments.
            If NumArgs = MaxArgs Then Exit For
            NumArgs = NumArgs + 1
            InArg = True
         End If
         'Concatenate character to current argument.
         ArgArray(NumArgs) = ArgArray(NumArgs) & C
      Else
         'Found a space or tab.
         'Set InArg flag to False.
         InArg = False
      End If
   Next I
   'Resize array just enough to hold arguments.
   ReDim Preserve ArgArray(NumArgs)
   'Return Array in Function name.
   GetCommandLine = ArgArray()
End Function

解决方案 »

  1.   

    不知道,好怪怪的,别扭。要访问文件用ASP、JSP等不成吗
      

  2.   

    大家可能知道IE找不到服务器的那个页面吧!!就是调用的
    res://C:\WINNT\System32\shdoclc.dll/dnserror.htm其实我就是想实现这样的东东!!
      

  3.   

    制作一个包含纯资源的DLL用VC最方便不过了。
    你一行代码都不用写,只管添加就可以了,最后编译成DLL即可。
      

  4.   

    用vb作一个iis应用程序,或vc的ISAPI Extension Wizard!