Jump to content
Fivewin Brasil

DOS ERROR 161


kapiaba

Recommended Posts

Galera, no windows 7 32 bits, funciona de boas, mas no windows de 64 bits me retorna DOS ERROR 161, exemplo:

O icone da máquina do uçuário aponta  para P:\ 

Instalaram o programa na raiz do HD. Quando eu mando um COPY TO NOMECOPIA.DBF, o windows me retorna DOS ERROR 161.

Mostra: \\PROPOCOP.DBF

Como eu elimino esse  \\  e o mais estranho é que o LCHDIR() não funciona também, imagem anexa do erro. Obg. abs.

 

UPH42Di.png

Link to comment
Share on other sites

Não entendo porquê não quer funcionar os comandos abaixo.

   PUBLIC cDirPleno
	   cDirPleno := GETCURDIR()
	   IF SUBS( cDirPleno, LEN( ALLTRIM(cDirPleno ) ) , 1 ) = "\"
      cDirPleno := SUBS( cDirPleno, 1 , LEN( ALLTRIM(cDirPleno ) ) - 1 )
   ENDIF
	   LCHDIR( cDirPleno )
   SET DEFAULT TO

Link to comment
Share on other sites

157 Segment is discarded.
158 Segment is not locked.
159 Invalid thread-identity address.
160 Invalid environment pointer.
161 Invalid path name passed to exec.
162 Signal already pending.
163 Error with INT 24 mapping.
164 No more process slots.
165 Error with INT 24 mapping.
166 Default redirection return code.
167 Locking failed.
168 Swap I/O failed.
169 Swap in failed.
170 Segment is busy.
171-172 Reserved.
173 A lock request is not outstanding for the specified file range, or the range length is zero.

Trata-se de uma Path, inválida! Substituir destino por uma Path real. Aparentemente um bug em relação aos comandos anteriores.

Link to comment
Share on other sites

Como ADM funciona.

#include "FiveWin.ch"
	static oWnd
	//----------------------------------------------------------------//
	FUNCTION Main()
	   local oBar
	   DEFINE WINDOW oWnd TITLE "COPY TO C:\"
	   DEFINE BUTTONBAR oBar _3D OF oWnd
	   DEFINE BUTTON OF oBar ACTION( ACTUALIZAR_BD() )
	   SET MESSAGE OF oWnd TO "COPY TO C:\" NOINSET CLOCK DATE KEYBOARD
	   ACTIVATE WINDOW oWnd
	RETURN NIL
	FUNCTION ACTUALIZAR_BD()  // COMO ADM. FUNCIONA.
	   LOCAL cDest := "C:\COPIA.DBF"
	   USE CUSTOMER EXCLUSIVE NEW
	   COPY TO (cDest)
	   IF FILE( "C:\COPIA.DBF" )
      ? "EXITO"
   ELSE
      ? "NO FUNCIONA SOLO COMO ADM."
   ENDIF
	   USE
	RETURN NIL


Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...