View Single Post
Old Dec 1st, 2005, 2:49 PM   #2
Rory
Expert Programmer
 
Rory's Avatar
 
Join Date: Jan 2005
Location: London
Posts: 542
Rep Power: 4 Rory is on a distinguished road
Send a message via MSN to Rory
You seem to be using a relative path with quotes: for long filenames you need a dot, or you can form the absolute path "manually". However on Windows NT and later, BAT PIF and CMD are no longer natively executable. Try the ShellExecute API / whatever the .NET FW wrapper is, or you can use the inbuilt Shell "command.com /c batchfile". However in VB.NET you shouldn't be relying on VB6 compatibility namespaces containing hangover aliases, and you also lose some functionality.
Rory is offline   Reply With Quote