I have a .bat file which moves files from one location to another:
When I manually click the .bat file, it works perfectly. When I get VB.NET to run the process, I get a quick DOS box flash and nothing happens. I'm guessing it is a security issue. This is how I am calling the file:
Have also tried this:
In both cases the files do not get moved. Any ideas?
Code:
move "W:\imagedump\*.jpg" "C:\test\"
When I manually click the .bat file, it works perfectly. When I get VB.NET to run the process, I get a quick DOS box flash and nothing happens. I'm guessing it is a security issue. This is how I am calling the file:
Code:
Dim MoveProcess As Process = New Process()
MoveProcess.StartInfo.FileName = "C:\ImageUpload\move.bat"
MoveProcess.Start()
MoveProcess.WaitForExit()
Have also tried this:
Code:
Shell("C:\ImageUpload\move.bat", AppWinStyle.NormalFocus)
In both cases the files do not get moved. Any ideas?