# Scan folder

**URL:** https://resource.dopus.com/t/scan-folder/4886
**Category:** Help & Support
**Created:** [October 22, 2007, 6:06am UTC](https://resource.dopus.com/t/scan-folder/4886 "2007-10-22T06:06:41Z")
**Posts on this page:** 20
**Page:** 1

<div class="post-metadata">

### Author: ![fkast](https://resource.dopus.com/user_avatar/resource.dopus.com/fkast/32/26108_2.png) [@fkast](https://resource.dopus.com/u/fkast)
#### Post date: [October 22, 2007, 6:06am UTC](https://resource.dopus.com/t/scan-folder/4886/1 "2007-10-22T06:06:41Z")

</div>

Can I scan with DOpus some folders every 1min & copy to needed path all differences

---

<div class="post-metadata">

### Author: ![Jon](https://resource.dopus.com/user_avatar/resource.dopus.com/jon/32/12713_2.png) [@Jon](https://resource.dopus.com/u/Jon)
#### Post date: [October 22, 2007, 6:11am UTC](https://resource.dopus.com/t/scan-folder/4886/2 "2007-10-22T06:11:02Z")

</div>

You could use the system task scheduler to run the Copy UPDATEALL command via dopusrt.

---

<div class="post-metadata">

### Author: ![fkast](https://resource.dopus.com/user_avatar/resource.dopus.com/fkast/32/26108_2.png) [@fkast](https://resource.dopus.com/u/fkast)
#### Post date: [October 22, 2007, 6:15am UTC](https://resource.dopus.com/t/scan-folder/4886/3 "2007-10-22T06:15:47Z")

</div>

How? Can U give me an example, please?

---

<div class="post-metadata">

### Author: ![fkast](https://resource.dopus.com/user_avatar/resource.dopus.com/fkast/32/26108_2.png) [@fkast](https://resource.dopus.com/u/fkast)
#### Post date: [October 22, 2007, 6:38am UTC](https://resource.dopus.com/t/scan-folder/4886/4 "2007-10-22T06:38:54Z")

</div>

i need to copy all new files copied to the folder. please help

---

<div class="post-metadata">

### Author: ![Leo](https://resource.dopus.com/user_avatar/resource.dopus.com/leo/32/69732_2.png) [@Leo](https://resource.dopus.com/u/Leo)
#### Post date: [October 22, 2007, 7:41am UTC](https://resource.dopus.com/t/scan-folder/4886/5 "2007-10-22T07:41:30Z")

</div>

You can run Opus commands from outside of Opus via dopusrt.exe. As a simple example, this will cause the About Window to be shown:

"C:\Program Files\GPSoftware\Directory Opus\dopusrt.exe" /cmd Help ABOUT

For help using the Windows task scheduler try Google, I guess. I've never used it myself but since it's part of Windows I'm sure there are lots of places that explain it.

---

<div class="post-metadata">

### Author: ![fkast](https://resource.dopus.com/user_avatar/resource.dopus.com/fkast/32/26108_2.png) [@fkast](https://resource.dopus.com/u/fkast)
#### Post date: [October 22, 2007, 9:27am UTC](https://resource.dopus.com/t/scan-folder/4886/6 "2007-10-22T09:27:21Z")

</div>

"C:\Program Files\GPSoftware\Directory Opus\dopusrt.exe" /cmd copy "\net\folder1" to "C:\folder2" updateall

what's wrong?  
i got "folder1 not found"!!!

---

<div class="post-metadata">

### Author: ![fkast](https://resource.dopus.com/user_avatar/resource.dopus.com/fkast/32/26108_2.png) [@fkast](https://resource.dopus.com/u/fkast)
#### Post date: [October 22, 2007, 9:30am UTC](https://resource.dopus.com/t/scan-folder/4886/7 "2007-10-22T09:30:41Z")

</div>

"Net path not found" (53)  
What's this?

---

<div class="post-metadata">

### Author: ![fkast](https://resource.dopus.com/user_avatar/resource.dopus.com/fkast/32/26108_2.png) [@fkast](https://resource.dopus.com/u/fkast)
#### Post date: [October 22, 2007, 10:06am UTC](https://resource.dopus.com/t/scan-folder/4886/8 "2007-10-22T10:06:52Z")

</div>

Can i use three commands in one string?  
ex:

C:\Program Files\GPSoftware\Directory Opus\dopusrt.exe go \srv\Exchange\ Select ALL Copy TO C:\_RG\try UPDATEALL

How to do this?

---

<div class="post-metadata">

### Author: ![fkast](https://resource.dopus.com/user_avatar/resource.dopus.com/fkast/32/26108_2.png) [@fkast](https://resource.dopus.com/u/fkast)
#### Post date: [October 22, 2007, 11:03am UTC](https://resource.dopus.com/t/scan-folder/4886/9 "2007-10-22T11:03:30Z")

</div>

is anybody here?  
sorry for flood, REALLY NEED HELP!

---

<div class="post-metadata">

### Author: ![Steve](https://resource.dopus.com/user_avatar/resource.dopus.com/steve/32/34171_2.png) [@Steve](https://resource.dopus.com/u/Steve)
#### Post date: [October 22, 2007, 11:19am UTC](https://resource.dopus.com/t/scan-folder/4886/10 "2007-10-22T11:19:51Z")

</div>

Stop posting - someone will reply when they have an answer for you, and time to post it - continually posting is just annoying - this is not a live help system.

---

<div class="post-metadata">

### Author: ![Jon](https://resource.dopus.com/user_avatar/resource.dopus.com/jon/32/12713_2.png) [@Jon](https://resource.dopus.com/u/Jon)
#### Post date: [October 22, 2007, 11:49am UTC](https://resource.dopus.com/t/scan-folder/4886/11 "2007-10-22T11:49:52Z")

</div>

To schedule multiple commands, either use a batch file containing multiple calls to dopusrt.exe, or create a user command in Opus and then invoke that with dopusrt. dopusrt itself can only send one command at a time.

---

<div class="post-metadata">

### Author: ![steje](https://resource.dopus.com/user_avatar/resource.dopus.com/steje/32/26008_2.png) [@steje](https://resource.dopus.com/u/steje)
#### Post date: [October 22, 2007, 5:51pm UTC](https://resource.dopus.com/t/scan-folder/4886/12 "2007-10-22T17:51:50Z")

</div>

This works just fine for me from a batch file:

`
rem First copy command
"C:\Program Files\GPSoftware\Directory Opus\dopusrt.exe" /cmd Copy UPDATEALL FORCE "\\node1\etc$\log\test\*" TO "E:\CASES\Case# XYZ - Exchange 2003 Backup Failure\node1\logs"
rem Second copy command
"C:\Program Files\GPSoftware\Directory Opus\dopusrt.exe" /cmd Copy UPDATEALL FORCE "\\node2\etc$\log\test\*" TO "E:\CASES\Case# XYZ - Exchange 2003 Backup Failure\node2\logs"`

The "Net path not found" error you last mentioned should have nothing to do with Opus... bottom line is to make sure whatever you want to do runs from a command prompt or batch file first... then you can either schedule the batch file to run... or as others said create an Opus user command (without the dopusrt prefix), and then schedule that... doesn't make much difference which way you use, but you need to create a working command first. Make sure the command copies the data in the way you want it to also... leaving just a folder name at the end of the path to copy from will copy THAT folder to your TO path...

Did you get your command working and do you know how to use the windows scheduler? If you put your commands in a batch file in the root of the C: drive called mycopy.cmd... you could then run something like this for a one-time schtasks test to run at 13:41:00 (1:41 PM):

schtasks /Create /tn mycopy-test /tr C:\mycopy.cmd /sc ONCE /st 13:41:00 /ru domain\myuseracct /rp mypasswd

You can then run schtasks /Create /? to get info on the /sc and /st and related options to set the sort of repeating schedule you want...

---

<div class="post-metadata">

### Author: ![fkast](https://resource.dopus.com/user_avatar/resource.dopus.com/fkast/32/26108_2.png) [@fkast](https://resource.dopus.com/u/fkast)
#### Post date: [October 23, 2007, 5:19am UTC](https://resource.dopus.com/t/scan-folder/4886/13 "2007-10-23T05:19:48Z")

</div>

[quote="steje"]This works just fine for me from a batch file:

`
rem First copy command
"C:\Program Files\GPSoftware\Directory Opus\dopusrt.exe" /cmd Copy UPDATEALL FORCE "\\node1\etc$\log\test\*" TO "E:\CASES\Case# XYZ - Exchange 2003 Backup Failure\node1\logs"
rem Second copy command
"C:\Program Files\GPSoftware\Directory Opus\dopusrt.exe" /cmd Copy UPDATEALL FORCE "\\node2\etc$\log\test\*" TO "E:\CASES\Case# XYZ - Exchange 2003 Backup Failure\node2\logs"`  
[/quote]  
I already did it! It doesn't work at all! I got "An error occurred while copying '\*'. Syntax error in a filename... (123)"

---

<div class="post-metadata">

### Author: ![fkast](https://resource.dopus.com/user_avatar/resource.dopus.com/fkast/32/26108_2.png) [@fkast](https://resource.dopus.com/u/fkast)
#### Post date: [October 23, 2007, 7:16am UTC](https://resource.dopus.com/t/scan-folder/4886/14 "2007-10-23T07:16:09Z")

</div>

The upper code copy a folder, not its contents! Why?

---

<div class="post-metadata">

### Author: ![steje](https://resource.dopus.com/user_avatar/resource.dopus.com/steje/32/26008_2.png) [@steje](https://resource.dopus.com/u/steje)
#### Post date: [October 23, 2007, 2:22pm UTC](https://resource.dopus.com/t/scan-folder/4886/15 "2007-10-23T14:22:59Z")

</div>

About your first reply... I can only imagine you're doing something wrong in your creation of the commands syntax, or since you're dealing with a UNC path, maybe you're bumping into some weird permissions issues here and there.

Can you narrow the scope of what you're doing by testing with just local folders and files first using 'dummy' directory paths we can test with ourselves to try and see what you're doing wrong?

About your 'second' reply, I actually noticed a 'different' strangeness with the copy commands I posted... any 'empty' folders located in the 'source' directory were not copied... it's like we need an equivilant to xcopy /E or something. Would not have expected that to happen... but I did NOT have the issue you're mentioning about 'contents' not being copied... Again, if you can provide 'local/non-unc' paths to test against which you can reproduce the problem with (as well as the command syntz you're trying to use)... then me or someone else can try and see what is wrong with what you're trying to do.

---

<div class="post-metadata">

### Author: ![fkast](https://resource.dopus.com/user_avatar/resource.dopus.com/fkast/32/26108_2.png) [@fkast](https://resource.dopus.com/u/fkast)
#### Post date: [October 24, 2007, 6:49am UTC](https://resource.dopus.com/t/scan-folder/4886/16 "2007-10-24T06:49:01Z")

</div>

NOW using only dopus internal commands:

with local paths everytings goes right!  
(Copy UPDATEALL force "c:\1\*" TO "C:\_RG\2")

normally, i get access to \srv04\exchange, i can copy all files & folders from this dir, i can do 'go','copy' etc. commands without any restrictions. But i can't copy any files using this command  
Copy UPDATEALL force "\srv04\Exchange\*" TO "C:\_RG\2"  
i got an error "An error occurred while copying '\*'. Синтаксическая ошибка в имени файла, имени папки или метке тома (53)" (that was in Russian. In eng: syntax error in filename, folder name or volume name(53))

---

<div class="post-metadata">

### Author: ![Leo](https://resource.dopus.com/user_avatar/resource.dopus.com/leo/32/69732_2.png) [@Leo](https://resource.dopus.com/u/Leo)
#### Post date: [October 24, 2007, 7:40am UTC](https://resource.dopus.com/t/scan-folder/4886/17 "2007-10-24T07:40:12Z")

</div>

Does it make any difference if you navigate to \srv04\Exchange before running the command? Sometimes that forces the UNC path to be connected and makes things work that wouldn't otherwise (although, at least in theory, it should not be needed).

---

<div class="post-metadata">

### Author: ![fkast](https://resource.dopus.com/user_avatar/resource.dopus.com/fkast/32/26108_2.png) [@fkast](https://resource.dopus.com/u/fkast)
#### Post date: [October 24, 2007, 10:11am UTC](https://resource.dopus.com/t/scan-folder/4886/18 "2007-10-24T10:11:32Z")

</div>

now i use:  
go \srv04\Exchange\  
select all  
Copy TO C:\_RG\2 UPDATEALL force  
go c:

it works!

but it's very inconvienient (two 'go' commands, hate this 'jumping')

Copy UPDATEALL force "\srv04\Exchange\*" TO "C:\_RG\2" doesn't work, BUT  
Copy UPDATEALL force "\srv04\Exchange\file.xxx" TO "C:\_RG\2" works fine. Troubles with pattern?

---

<div class="post-metadata">

### Author: ![Jon](https://resource.dopus.com/user_avatar/resource.dopus.com/jon/32/12713_2.png) [@Jon](https://resource.dopus.com/u/Jon)
#### Post date: [October 24, 2007, 11:16am UTC](https://resource.dopus.com/t/scan-folder/4886/19 "2007-10-24T11:16:03Z")

</div>

What about using net use to map the network share as a drive letter before the Copy command? You could unmap it afterwards.

---

<div class="post-metadata">

### Author: ![fkast](https://resource.dopus.com/user_avatar/resource.dopus.com/fkast/32/26108_2.png) [@fkast](https://resource.dopus.com/u/fkast)
#### Post date: [October 24, 2007, 11:28am UTC](https://resource.dopus.com/t/scan-folder/4886/20 "2007-10-24T11:28:46Z")

</div>

Nope...  
doesn't work...  
but at this time i got "An error occurred copying '30.dwg'. System cannot find the path specified. (3)"  
It's another error! 🙂  
30.dwg - first file to copy

[Next page](https://resource.dopus.com/t/scan-folder/4886.md?page=2)
