logo
Welcome Guest! To enable all features please Login or Register.

Notification

Icon
Error

Options
Go to last post Go to first unread
ward@hollyyashi.com  
#1 Posted : Thursday, August 13, 2020 5:26:07 AM(UTC)
ward@hollyyashi.com

Rank: Advanced Member

Groups: Registered
Joined: 8/30/2019(UTC)
Posts: 33
United States
Location: Arcata, California

Thanks: 2 times
My batch file that calls CenterPointDataBrowserConsole.exe work just fine interactively, but it hangs when run as a scheduled task in W10. Can you offer any suggestions?
aarony  
#2 Posted : Thursday, August 13, 2020 12:52:33 PM(UTC)
aarony

Rank: Administration

Groups: Administrators, Moderator, Registered
Joined: 2/28/2018(UTC)
Posts: 53
Location: Red Wing, MN

Was thanked: 4 time(s) in 4 post(s)
I would check the following:

1. The working directory is being set correctly
2. An appropriate user account is being used to run the task (try your current user account.)
3. The task is *not* being elevated (CenterPoint does not require elevation.)

If these are set appropriately and it runs fine when you select "Run selected task" in the scheduler, then it should run fine when scheduled.

ward@hollyyashi.com  
#3 Posted : Thursday, August 13, 2020 5:49:49 PM(UTC)
ward@hollyyashi.com

Rank: Advanced Member

Groups: Registered
Joined: 8/30/2019(UTC)
Posts: 33
United States
Location: Arcata, California

Thanks: 2 times
The beginning of the batch file stores the date and run time in a text file. So I can tell that the batch file is getting launched correctly by the task scheduler. I'm using the same user account and turned off elevation. But when I "run selected task", it hangs when it get to the line:

"C:\Program Files (x86)\Red Wing Software\CenterPoint\CenterPointDataBrowserConsole.exe" \\han\tp\XMLsetting.txt [username] [password]

Any other suggestions? Does this work for others?
tony  
#4 Posted : Thursday, August 13, 2020 5:56:37 PM(UTC)
tony

Rank: Advanced Member

Groups: Registered
Joined: 2/28/2018(UTC)
Posts: 65
United States
Location: Pennsylvani mostly

Was thanked: 9 time(s) in 9 post(s)
I don't know much about this stuff, but I think that you probably need to run CenterPoitnDataBrowserConsole.exe from the "C:\Program Files (x86)\Red Wing Software\" folder.

Maybe something like:

cd "C:\Program Files (x86)\Red Wing Software\"
CenterPointDataBrowserConsole.exe \\han\tp\XMLsetting.txt [username] [password]

Not sure what needs to be quoted and what does not.
ward@hollyyashi.com  
#5 Posted : Thursday, August 13, 2020 6:20:56 PM(UTC)
ward@hollyyashi.com

Rank: Advanced Member

Groups: Registered
Joined: 8/30/2019(UTC)
Posts: 33
United States
Location: Arcata, California

Thanks: 2 times
I changed the batch file to change directory and then run the import. It still works interactively, but still hangs when started from the Task Scheduler.
aarony  
#6 Posted : Thursday, August 13, 2020 6:28:01 PM(UTC)
aarony

Rank: Administration

Groups: Administrators, Moderator, Registered
Joined: 2/28/2018(UTC)
Posts: 53
Location: Red Wing, MN

Was thanked: 4 time(s) in 4 post(s)
I just ran an experiment myself and it worked fine when I executed the batch file from a Windows Scheduled Task in Windows 10.

Are you changing any default settings in the task when you configure it that I may not be replicating in my test?

When I add the Task, I select "Start a program" and select the Batch file, I do *not* specify any arguments or a start in path and I do not alter any other settings, so it defaults to running as Me and doesn't elevate.

- Aaron.
aarony  
#7 Posted : Thursday, August 13, 2020 6:37:00 PM(UTC)
aarony

Rank: Administration

Groups: Administrators, Moderator, Registered
Joined: 2/28/2018(UTC)
Posts: 53
Location: Red Wing, MN

Was thanked: 4 time(s) in 4 post(s)
It may also be worth putting a "PAUSE" after the export in your batch file so the console windows stay open after the task launches.
Then you can see if the CenterPointDataBrowserConsole.exe is reporting an error.

- Aaron.
Users browsing this topic
Guest (2)
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.