WinBatch Tech Support Home

Database Search

If you can't find the information using the categories below, post a question over in our WinBatch Tech Support Forum.

TechHome

Winbatch Studio
plus

Can't find the information you are looking for here? Then leave a message over on our WinBatch Tech Support Forum.

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 online
OnLine: 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)

Article ID:   W15773
File Created: 2003:05:13:11:30:02
Last Updated: 2003:05:13:11:30:02