Very cool in vbscript, Not so Cool in VB 
Author Message
 Very cool in vbscript, Not so Cool in VB

VBScript, When I drag onto the script I get "C:\My
Documents\VBScript\ChillerPlant.dmp"

Set Args = WScript.Arguments 'Drag and Drop or Cmdline

If Args.Count = 1 Then inFile = Args(0)

----------
In VB i get "C:\MYDOCU~1\VBSCRIPT\CHILLE~1.DMP"

If Command() <> "" Then inFile = Command()

----------

Is there a way to get the same result in VB?



Tue, 18 May 2004 03:15:08 GMT  
 Very cool in vbscript, Not so Cool in VB
Rich,

There are a couple things you can do:
Q149863 - PRB: Long Filenames Lost when Project is Loaded by Association
Q163227 - HOWTO: Get a Long Filename from a Short Filename

To find a KB article you can type "MSKB articlenum" into Internet
Explorer's Address Bar (without the quotes) or you can go to
http://support.microsoft.com.

Kevin Williamson - Microsoft Visual Basic Developer Support
This posting is provided "AS IS" with no warranties, and confers no rights.
You assume all risk for your use. ? 2001 Microsoft Corporation. All rights
reserved.

--------------------
| Content-Class: urn:content-classes:message


| Subject: Very cool in vbscript, Not so Cool in VB
| Date: Thu, 29 Nov 2001 11:15:08 -0800
| Lines: 16

| MIME-Version: 1.0
| Content-Type: text/plain;
|       charset="iso-8859-1"
| Content-Transfer-Encoding: 7bit
| X-Newsreader: Microsoft CDO for Windows 2000
| X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4522.1200
| Thread-Index: AcF5Cikjb4cSi4P9SW6EZytNHIwwdg==
| Newsgroups: microsoft.public.vb.controls
| NNTP-Posting-Host: TKMSFTNGXA12 10.201.226.40
| Path: cppssbbsa01.microsoft.com!tkmsftngp01!cpmsftngxa10!cpmsftngxa09
| Xref: cppssbbsa01.microsoft.com microsoft.public.vb.controls:121565
| X-Tomcat-NG: microsoft.public.vb.controls
|
| vbscript, When I drag onto the script I get "C:\My
| Documents\VBScript\ChillerPlant.dmp"
|
| Set Args = WScript.Arguments 'Drag and Drop or Cmdline
|
| If Args.Count = 1 Then inFile = Args(0)
|
| ----------
| In VB i get "C:\MYDOCU~1\VBSCRIPT\CHILLE~1.DMP"
|
| If Command() <> "" Then inFile = Command()
|
| ----------
|
| Is there a way to get the same result in VB?
|
|



Tue, 18 May 2004 07:29:24 GMT  
 
 [ 2 post ] 

 Relevant Pages 

1. This is so cool, so very, very cool!

2. A cool site and a cool group

3. WSKSOCK addrtoip not cool

4. Cool VB Site: VB-2-The-Max

5. Cool VB Site: VB-2-The-Max

6. New VB chat/message site-VERRRYYY COOL!!!!

7. COOL NEW BASIC/VB SITE NOW UP!

8. Cool Vb Links

9. Cool alternative to VB

10. Cool VB Add Ins ?

 

 
Powered by phpBB® Forum Software