Page 1 of 1

Connecting to a network drive

Published: March 23, 2017 - 12:55 PM
by JoeyReyston
So I'm still having a problem. I put a .bat file on the Wapt server containing: `

net use *: \\server\install\files /user:user password
XCOPY "*:\AddonsWin7\Applis\WinRELAIS" "c:\WinRELAISinstall\" /H /E /C /V < N.txt` `
net use *: /delete /y` `
cd /dc:\` `
md "%ProgramFiles%\elec-cao"`
`cd /dc:\winrelaisinstall\
` "WinRelais script.exe"

As you can see, the goal is to connect to a network drive, retrieve "winrelais", and launch the local installation. However, the Wapt server is stuck at the connection stage,
and I'm getting this error
: `installing crp-script
TimeoutExpired: Command '('"script.bat" ',)' timed out after 600.0 seconds with output '`
c:\windows\temp\waptiwsupe>net use *: \\server\install\files /user:user password
System error 1312 has occurred.

A specified logon does not exist. It may have already terminated.

Does anyone have any ideas?

Re: Connecting to a network drive

Published: March 26, 2017 - 3:55 PM
by sfonteneau
Hello,

for better results, it's better to code the package directly in Python rather than running a .bat file.

Another issue: why do you want to connect a network drive?

It would be better to copy WinRELAIS into your WAPT package and then run the installation.

Simon

Re: Connecting to a network drive

Published: March 27, 2017 - 08:34
by JoeyReyston
The problem with this application is that it cannot be installed silently, and I can't find any way to remove the silent mode imposed by WAPT