1028 Error using Go Button Rather than Run Button in WB Studio
Keywords: 1028 Error Go Button Run Button WB Studio
Question:
I am having a problem with my script. If I run it using the GO Button on WinBatch Studio Tool bar it works fine. If I try and run it using the RUN Button on the tool bar I get the following error.Title Bar: Error XCOPY 1 C:\Documents and Settings
Error Msg Body: Error 1028: LogDisk: Requested Drive not onlineOnLine: if !DirExist(toptargdir) then (DirMake(toptargdir)After I get this error I can press the GO Button and it will work fine. Is there something I'm missing??
Answer:
RUN button runs the script with the real Winbatch.The GO button runs the script from inside of WinBatch Studio's debugger.
Most likely the problem is an initial startup configuration. The startup configuration *can* be different.
Add
Message("Current Directory",DirGet())to the top of your script and see if that is different.Maybe add a DirChange to fix it.
Sometimes this helps...
moi=IntControl(1004,0,0,0,0) moipath=Filepath(moi) DirChange(moipath)