Hi, I'm using a VBScript to run a .EXE file, as well as write to and read from text files, and it runs smoothly from my hard drive. I would like to get this project working on a website, but have not been successful in my various attempts. Although the error message I've been getting is empty, my guess is that this could possibly stem from not knowing what I should have for the file path (\\ didn't work... ?)
The web directory: This directory contains the script as well as the .EXE file and text files.
Here are code snippets I used before attempting to transfer the program to the web:
' Create files to write
Set choiceDAT = system.CreateTextFile("choice.dat", True)
' Execute pos_predic.exe
Set WshShell = CreateObject("WScript.Shell"
WshShell.Run "cmd /C pos_predic",1,True
This works well from my hard drive. I appreciate any help on how I should change this code to meet web needs or any other suggestions that might help.
Thanks!
The web directory: This directory contains the script as well as the .EXE file and text files.
Here are code snippets I used before attempting to transfer the program to the web:
' Create files to write
Set choiceDAT = system.CreateTextFile("choice.dat", True)
' Execute pos_predic.exe
Set WshShell = CreateObject("WScript.Shell"
WshShell.Run "cmd /C pos_predic",1,True
This works well from my hard drive. I appreciate any help on how I should change this code to meet web needs or any other suggestions that might help.
Thanks!