Search found 5 matches
- 27 Mar 2015 12:56
- Forum: DOS Batch Forum
- Topic: S O L V E D Find path to sub folder and write to variable
- Replies: 12
- Views: 8030
Re: S O L V E D Find path to sub folder and write to vari
Hi Squashman, I copied and pasted the code from the second post. When I ran the code, it seemed to freeze the computer so I ended the process. As an experiment I removed the quotes from Do Set "MyVar=%%A" I then saved and ran the batch file again, I got distracted and when I looked back, t...
- 26 Mar 2015 13:39
- Forum: DOS Batch Forum
- Topic: S O L V E D Find path to sub folder and write to variable
- Replies: 12
- Views: 8030
Re: Find path to sub folder and write to variable
OK guys, thank you for the above. I had to remove the "" from the Do Set "MyVar=%%A" so it was Do Set MyVar=%%A, it then worked as described/expected. I have used robocopy "%MyVar%" "F:\Backed up Files"\ /e /mir /log:backup_log.txt and again I got the results ...
- 14 Mar 2015 12:33
- Forum: DOS Batch Forum
- Topic: S O L V E D Find path to sub folder and write to variable
- Replies: 12
- Views: 8030
Re: Find path to sub folder and write to variable
Thanks for your answers Guys.
I am away until around the 26th March I will have a look at it all then, then I will come back to you.
Tahnks
Keith
I am away until around the 26th March I will have a look at it all then, then I will come back to you.
Tahnks
Keith
- 09 Mar 2015 01:42
- Forum: DOS Batch Forum
- Topic: S O L V E D Find path to sub folder and write to variable
- Replies: 12
- Views: 8030
Re: Find path to sub folder and write to variable
Thank you both for your replies, I understand what you are saying about better info. The only “for sure” thing I can give you is the folder name Silver Dawn, for example, on my computer the path is C:\Users\KG\My Documents\Silver Dawn on another computer here it is C:\Users\Home\Brenda\My Documents\...
- 08 Mar 2015 11:20
- Forum: DOS Batch Forum
- Topic: S O L V E D Find path to sub folder and write to variable
- Replies: 12
- Views: 8030
S O L V E D Find path to sub folder and write to variable
I have a batch file that uses xcopy to backup to external drive, this may change to robocopy later. I would like to use this batch file on several computers, "BUT" each computer has a different path, to the sub folder that needs to be backed up, although, the folder that has to be backed u...