Click here to Skip to main content
15,897,891 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralRe: Capturing/supressing error message Pin
svanwass31-Oct-07 9:59
svanwass31-Oct-07 9:59 
GeneralRe: Capturing/supressing error message Pin
Dave Kreskowiak31-Oct-07 10:13
mveDave Kreskowiak31-Oct-07 10:13 
QuestionUpgrading vb.net 2002 to vb.net 2005 [modified] Pin
gil_be31-Oct-07 3:57
gil_be31-Oct-07 3:57 
QuestionReturning a filename from command prompt. Pin
Support12331-Oct-07 3:50
Support12331-Oct-07 3:50 
AnswerRe: Returning a filename from command prompt. Pin
svanwass31-Oct-07 5:12
svanwass31-Oct-07 5:12 
GeneralRe: Returning a filename from command prompt. Pin
Support12331-Oct-07 5:23
Support12331-Oct-07 5:23 
GeneralRe: Returning a filename from command prompt. Pin
svanwass31-Oct-07 5:45
svanwass31-Oct-07 5:45 
AnswerRe: Returning a filename from command prompt. Pin
Dave Kreskowiak31-Oct-07 6:38
mveDave Kreskowiak31-Oct-07 6:38 
There's several ways of doing this. The 2nd easiest is, like the other person said, to have the script write it to a file.

The 3rd easiest is to rewrite your Shell statement into a .NET Framework Process object and use that to redirect the console output to a stream in your code.

The very easiest way to do this would be to scrap the VBScript part entirely and just use the .NET Frameworks FileSystemWatcher class, which will tell you if a file was created in the folder it's watching and what the new filename is.


A guide to posting questions on CodeProject[^]

Dave Kreskowiak
Microsoft MVP
Visual Developer - Visual Basic
     2006, 2007


GeneralRe: Returning a filename from command prompt. Pin
Mycroft Holmes31-Oct-07 23:21
professionalMycroft Holmes31-Oct-07 23:21 
GeneralRe: Returning a filename from command prompt. Pin
Dave Kreskowiak1-Nov-07 1:45
mveDave Kreskowiak1-Nov-07 1:45 
QuestionHow pass an event to a sub Pin
Narenge31-Oct-07 3:37
Narenge31-Oct-07 3:37 
AnswerRe: How pass an event to a sub Pin
svanwass31-Oct-07 5:13
svanwass31-Oct-07 5:13 
AnswerRe: How pass an event to a sub Pin
AliAmjad31-Oct-07 5:13
AliAmjad31-Oct-07 5:13 
AnswerRe: How pass an event to a sub Pin
Dave Kreskowiak31-Oct-07 6:32
mveDave Kreskowiak31-Oct-07 6:32 
AnswerRe: How pass an event to a sub Pin
Narenge31-Oct-07 12:25
Narenge31-Oct-07 12:25 
Questionconnecting an Access database to visual basic.net 2005 Pin
Ian Wells31-Oct-07 2:21
Ian Wells31-Oct-07 2:21 
AnswerRe: connecting an Access database to visual basic.net 2005 Pin
svanwass31-Oct-07 5:30
svanwass31-Oct-07 5:30 
Questionneed help with vb.net and active directory. Pin
kingpin200531-Oct-07 2:17
kingpin200531-Oct-07 2:17 
AnswerRe: need help with vb.net and active directory. Pin
Dave Kreskowiak31-Oct-07 6:13
mveDave Kreskowiak31-Oct-07 6:13 
GeneralRe: need help with vb.net and active directory. Pin
kingpin200531-Oct-07 21:53
kingpin200531-Oct-07 21:53 
QuestionArray - Structure problem Pin
Benny_Lava31-Oct-07 0:38
Benny_Lava31-Oct-07 0:38 
AnswerRe: Array - Structure problem Pin
pmarfleet31-Oct-07 3:33
pmarfleet31-Oct-07 3:33 
AnswerRe: Array - Structure problem Pin
Dave Kreskowiak31-Oct-07 6:07
mveDave Kreskowiak31-Oct-07 6:07 
QuestionPath to Installed Application Pin
SekharOne30-Oct-07 23:41
SekharOne30-Oct-07 23:41 
AnswerRe: Path to Installed Application Pin
Dave Kreskowiak31-Oct-07 6:05
mveDave Kreskowiak31-Oct-07 6:05 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.