Connecting Tech Pros Worldwide Forums | Help | Site Map

vbscript problem

Member
 
Join Date: Jul 2007
Location: Philippines
Posts: 54
#1: Oct 3 '07
i have a script that make a log during logon.The log file(text file)must be saved in the same path where the script is.All works well but when i compiled the vbscript to an executable file the log file cannot be seen.I have noticed that when the exe execute it make a temporary .vbs file (which is the original .vbs file that i convert to exe) and save it in my temp folder,it will be deleted after the execution of the exe file.Maybe this is the reason why the log file will not be saved in the same path.

i use Exescript in coverting the vbs to exe

Pls help me in solving this......

Moderator
 
Join Date: Oct 2006
Location: Australia
Posts: 7,748
#2: Oct 5 '07

re: vbscript problem


Sorry, we don't seem to have a lot of VBScript expertise around here these days.

Um... a couple of questions...
  1. Can you show us the code that determines where the file is to be written?
  2. Can you do a dialogue box or something to display what path it is about to write to, for debugging purposes?
  3. Have you checked the documentation for the conversion utility?
Reply


Similar Visual Basic 4 / 5 / 6 bytes