Hi,
on my desktop computer the "Windows Wachter" worked, but on a virtual machine the second window, which appeared 30 seconds later than the first window, was not processed. I will follow up and give feedback if necessary.
Thanks so far, Ján
Action "Login to network share / Map network drive" does not connect nor disconnect
Re: Check the connection to the network drive
Your virtual machine is a "black box" for your host computer. Generally speaking, it is a different computer. RoboTask cannot detect windows in the virtual machine from the host computer....but on a virtual machine the second window...
To make the window watcher trigger work, you need to install RoboTask on your virtual machine
Oleg Yershov
Re: Check the connection to the network drive
Hello Oleg,
I'm just a beginner, sorry. I tried to disconnect the network drive from one task and connect it with another task. It doesn't work. Here is the code from disconnecting. Robotask says task successfully completed, but the drive is still there! I do not understand. 3 error messages appear when connecting:
E: 28.01.2025 15:26:06: System error 1219 occurred.
E: 28.01.2025 15:26:06: Multiple connections to a server or a shared resource from the same user using multiple user names are not permitted. Disconnect all previous connections to the server or shared resource and try again.
E: 28.01.2025 15:26:06: There was an error. Step 1 (Map "\\192.168.178.111\SK01" as "R:").
I attach both codes one below the other. Maybe you can help?
I'm just a beginner, sorry. I tried to disconnect the network drive from one task and connect it with another task. It doesn't work. Here is the code from disconnecting. Robotask says task successfully completed, but the drive is still there! I do not understand. 3 error messages appear when connecting:
E: 28.01.2025 15:26:06: System error 1219 occurred.
E: 28.01.2025 15:26:06: Multiple connections to a server or a shared resource from the same user using multiple user names are not permitted. Disconnect all previous connections to the server or shared resource and try again.
E: 28.01.2025 15:26:06: There was an error. Step 1 (Map "\\192.168.178.111\SK01" as "R:").
I attach both codes one below the other. Maybe you can help?
Code: Select all
;*****************************
;* RoboTask Task file
;* Do not edit in text editor!
;*****************************
[Root]
ActionAfterRun=INTEGER|0
Actions=FOLDER
Automat=INTEGER|0
CatID=INTEGER|0
Comment=STRINGLIST
ContinueOnError=INTEGER|0
DisableOnError=INTEGER|0
DoNotStopWhenShutdown=INTEGER|0
ExternalName=STRING|"Task1"
Hide=INTEGER|0
ID=INTEGER|-955131315
LogOnAsUser=INTEGER|1
Name=STRING|"Disconnect drive"
OnErrorTaskID=INTEGER|0
Priority=INTEGER|3
RestrictRESTAPIAccess=INTEGER|0
RunOnClose=INTEGER|0
RunOnStartup=INTEGER|0
StepPause=INTEGER|0
ToLog=INTEGER|3
UnicodeFormat=INTEGER|1
WriteGeneralLog=INTEGER|0
[Actions]
Action1=FOLDER
[Actions\Action1]
ActionID=STRING|"A_LOGIN_MAP_SHARE"
Enabled=INTEGER|-1
Name=STRING|"Disconnect from ""\\192.168.178.111\SK01"""
Params=FOLDER
[Actions\Action1\Params]
drive=STRING|"F:"
mapdrive=STRING|"0"
mode=STRING|"1"
sharename=STRING|"\\192.168.178.111\SK01"
Code: Select all
;*****************************
;* RoboTask Task file
;* Do not edit in text editor!
;*****************************
[Root]
ActionAfterRun=INTEGER|0
Actions=FOLDER
Automat=INTEGER|0
CatID=INTEGER|0
Comment=STRINGLIST
ContinueOnError=INTEGER|0
DisableOnError=INTEGER|0
DoNotStopWhenShutdown=INTEGER|0
ExternalName=STRING|"Task7"
Hide=INTEGER|0
ID=INTEGER|975365124
LogOnAsUser=INTEGER|1
Name=STRING|"Connect drive"
OnErrorTaskID=INTEGER|0
Priority=INTEGER|3
RestrictRESTAPIAccess=INTEGER|0
RunOnClose=INTEGER|0
RunOnStartup=INTEGER|0
StepPause=INTEGER|0
ToLog=INTEGER|3
UnicodeFormat=INTEGER|1
WriteGeneralLog=INTEGER|0
[Actions]
Action1=FOLDER
[Actions\Action1]
ActionID=STRING|"A_LOGIN_MAP_SHARE"
Enabled=INTEGER|-1
Name=STRING|"Map ""\\192.168.178.111\SK01"" as ""R:"""
Params=FOLDER
[Actions\Action1\Params]
drive=STRING|"R:"
mapdrive=STRING|"1"
mode=STRING|"0"
sharename=STRING|"\\192.168.178.111\SK01"
username=STRING|"jan.bluhm"
Re: Check the connection to the network drive
Do you see any warnings in the log?Robotask says task successfully completed, but the drive is still there! I do not understand.
If network drive is already mapped as R: you must disconnect R: (not \\192.168.178.111\SK01)
Oleg Yershov
Re: Check the connection to the network drive
Hi Oleg, I have listed the error messages in my last post
As I said, I am trying to check whether a drive, this is a network drive, exists (I can see this from the drive letter in Explorer) and whether it is accessible (I can check this by double-clicking so that the drive opens). If it is not available in Explorer, a connection to the network drive should be established. In other words, the drive letter must appear in Explorer.
As I said, I am trying to check whether a drive, this is a network drive, exists (I can see this from the drive letter in Explorer) and whether it is accessible (I can check this by double-clicking so that the drive opens). If it is not available in Explorer, a connection to the network drive should be established. In other words, the drive letter must appear in Explorer.