Computing desk | ||
---|---|---|
< July 14 | << Jun | July | Aug >> | July 16 > |
Welcome to the Wikipedia Computing Reference Desk Archives |
---|
The page you are currently viewing is an archive page. While you can leave answers for any questions shown below, please ask new questions on one of the current reference desk pages. |
I have a Brother MFC-790CW and am trying to easily scan some double sided documents (to multipage .tiff or .pdf files would be great) so far I've had little luck. It has a document autofeeder so I definitely want to be able to use that. So far I have Microsoft Office Document Imaging, but when I use that document autofeeder acts strange. I would greatly appreciate any suggestions. Xor 24 talk to me 00:30, 15 July 2010 (UTC)
Whenever I turn on my computer, I find out that 3 or 4 softwares (antivirus programs) are installed to my computer. The softwares themselves seem viral because they don't do any virus removal for you but merely advertise their own softwares. I keep removing the programs but they are constantly reinstalled to my program. I scanned my computer and removed all the virus found by using a legit antivirus software, but it doesn't seem to be working. I'm tired of constantly having to remove the programs from my computer. Please help. —Preceding unsigned comment added by 70.68.120.162 ( talk) 02:40, 15 July 2010 (UTC)
I'd like to reset my router to its factory settings, which of course means my current password for accessing my wireless network will be erased. Once I go through the usual steps of setting up my network, would it be safe to use the same password I had before? Or would I be better off with a new one? 24.189.87.160 ( talk) 07:01, 15 July 2010 (UTC)
Loadlin can chain load linux from DOS or win9x. Is there a program, which would allow chain loading some other OS from linux in similar way? (Or linux cannot be overwritten similarily to DOS). - Yyy ( talk) 10:33, 15 July 2010 (UTC)
I am trying to write a Windows batch file that will merge two similar folder trees, but I've never done this before and I am not a programmer. Same-name folders are merged, but same-name files are renamed before copying. It seems to be easiest to make a new copy of one of the folder-trees, and then merge the other folder-tree into it. This is the where I've got to so far:
C:\>FOR /R C:\mypath\ %%G IN (*.*) DO CALL :copyfile %%G
IF NOT EXIST %destfile% copy %srcfile% %destfile% /V ELSE copy %srcfile% %destfile%.bak /V
1) What is the "%%G" for? What does it do? B) How do I get :copyfile to behave like a subroutine? 3) Most importantly, if it finds that there is a sub-folder in the source folder that is not in the destination folder, how do I get it to copy the subfolder (and all its files and subfolders) into the destination folder? Thanks 92.24.191.1 ( talk) 12:47, 15 July 2010 (UTC)
FOR /R traverses the directiory tree, I believe. Once I have solved 3) above then I should have a quick solution for my problem, apart from tinkering with 2). Perhaps it will do what I asked about in 3) without needed anything else. 92.29.115.235 ( talk) 14:28, 15 July 2010 (UTC)
I do not believe that rsync or any of the other similar tools will do what is described above - none of them will rename a file with a clashing name. I've tried them and searched for a solution for a long time - none found. Thanks 92.29.115.235 ( talk) 14:49, 15 July 2010 (UTC)
4) Is it possible to find out if a directory in the current source folder does not exist in the current destination folder? Thanks 92.29.115.235 ( talk) 14:51, 15 July 2010 (UTC)
Another helpful tool for copying subdirectories: xcopy /s will recursively copy an entire directory tree. Xcopy is the extended copy tool on Windows; type xcopy /? for documentation of its other features. It may be helpful inside your script at some point, providing features that regular Windows copy does not. Nimur ( talk) 16:11, 15 July 2010 (UTC)
batch script
|
---|
@echo off & setlocal enableextensions enabledelayedexpansion
set srcroot=c:\src
set dstroot=c:\dst
set op=echo
set srcrootlen=0
set x=%srcroot%
:length_loop
set x=%x:~1%
set /a srcrootlen += 1
if defined x goto length_loop
for /r "%srcroot%" %%i in (*) do (
set src=%%i
set dst=!dstroot!!src:~%srcrootlen%!
call :copysub "!src!" "!dst!"
)
goto :end
:copysub
set dst=%~2
set n=0
:copyloop
if not exist "%dst%" goto docopy
set /a n += 1
set dst=%~dpn2 (%n%)%~x2
goto copyloop
:docopy
if not exist "%~dp2" %op% mkdir "%~dp2"
%op% copy %1 "%dst%"
:end
|
Thank you very much for the batch file. "The script will fail if there's a source directory with the same name as a destination file." Read that twice: "source directory", "destination file". Would there be any way of checking that before using the script please?
While rsync looks promising, according to the article it is for Unix systems and not Windows, but I also see that the article mentions some Windows versions DeltaCopy QtdSync and RsyncBackup which I will look at. Thanks 92.24.182.219 ( talk) 10:15, 16 July 2010 (UTC)
All of DeltaCopy QtdSync and RsyncBackup only work over a network, and do not mention anything about not overwriting files, so appear to be of no use for this problem. 92.29.117.202 ( talk) 16:25, 17 July 2010 (UTC)
batch script
|
---|
@echo off & setlocal enabledelayedexpansion
set srcroot=c:\src
set dstroot=c:\dst
set srcrootlen=0
set x=%srcroot%
:length_loop
set x=%x:~1%
set /a srcrootlen += 1
if defined x goto length_loop
for /d /r "%srcroot%" %%i in (*) do (
set src=%%i
set dst=!dstroot!!src:~%srcrootlen%!
call :sub "!src!" "!dst!"
)
pause
goto :end
:sub
if not exist %2 goto end
set attr=%~a2
if not d==%attr:~0,1% (
echo dir: %~1
echo file: %~2
echo.
)
:end
|
I'm not sure if I should run around shouting "Eureka!" but the utility here says it can rename things in its commands: http://syncdir.sourceforge.net/ On the other hand there is an implication that it overwites rather than merging the same directory names. There are seemingly dozens of things with a similar name. Thanks 92.24.178.184 ( talk) 12:11, 18 July 2010 (UTC)
The graphics card to my first gen Mac Pro died. While the new retail options for Mac graphics card are pretty slim, they are all PCI Express 2.0. Wikipedia's entry on PCI Express says they are supposed to be backwards compatible with v1.1 and v1.0 motherboards (restricted bandwidth, of course). Has anyone tried this? -- 70.167.58.6 ( talk) 15:14, 15 July 2010 (UTC)
I was reading in Wired that each frame in Toy Story 3 took seven hours to render (on average). But 15 years earlier, Toy Story 1 took 5 hours per frame. How would you compare computer speed then to now? Low MHz unicore RISC Sparc CPUs vs today's GHz multi-core designs. 100x faster? -- 70.167.58.6 ( talk) 19:32, 15 July 2010 (UTC)
Also this [7] mentions that TS1 was rendered at 1526x922 pixels.
Toy Story aside, how much faster is a modern high end dual Quad-Core work station compared to a 1995 Sun SPARCstation? -- 70.167.58.6 ( talk) 16:24, 16 July 2010 (UTC)
A number of times over the years, while browsing various sites (including Wikipedia) I've been presented with the actual php code of the page I requested. This has in at least one occasion, in this case a small forum, given me the moderators password which was in the php code. After another refresh, the site was back to normal displaying the correct page. My question is, why does this happen, and what can be done to prevent it if one were running their own server with php pages? 82.43.90.93 ( talk) 19:38, 15 July 2010 (UTC)
Thank you for the responses :) @Rocketrye12 I'm certain it was the php code; started with "<?php" etc, contained everything you'd expect to see in php code, including a config section with moderator passwords, board settings etc, and the url of the page was something like http://example.com/index.php?page=4 When it happened on Wikipedia I think I was trying to edit a page, but again it was clearly php code with bits of garbled html. After a refresh it was back to normal. I can't replicate it - in however many years I've been browsing the internet I've only seen this happen around 3 times 82.43.90.93 ( talk) 00:17, 16 July 2010 (UTC)
Which laptop manufacturers offer international warranties (= even hardware failure can be fixed at no cost in countries other than the country where it's bought)? Alternatively, are there other companies offering the same (offering to fix a laptop, cover the costs of fixing a laptop, etc.) for a reasonable price (<100, mayyybe <150)? Or where else do I find people who know the answer to this question (other than calling every single manufacturer)? Thanks a lot, Thanks for answering ( talk) 23:20, 15 July 2010 (UTC)
Computing desk | ||
---|---|---|
< July 14 | << Jun | July | Aug >> | July 16 > |
Welcome to the Wikipedia Computing Reference Desk Archives |
---|
The page you are currently viewing is an archive page. While you can leave answers for any questions shown below, please ask new questions on one of the current reference desk pages. |
I have a Brother MFC-790CW and am trying to easily scan some double sided documents (to multipage .tiff or .pdf files would be great) so far I've had little luck. It has a document autofeeder so I definitely want to be able to use that. So far I have Microsoft Office Document Imaging, but when I use that document autofeeder acts strange. I would greatly appreciate any suggestions. Xor 24 talk to me 00:30, 15 July 2010 (UTC)
Whenever I turn on my computer, I find out that 3 or 4 softwares (antivirus programs) are installed to my computer. The softwares themselves seem viral because they don't do any virus removal for you but merely advertise their own softwares. I keep removing the programs but they are constantly reinstalled to my program. I scanned my computer and removed all the virus found by using a legit antivirus software, but it doesn't seem to be working. I'm tired of constantly having to remove the programs from my computer. Please help. —Preceding unsigned comment added by 70.68.120.162 ( talk) 02:40, 15 July 2010 (UTC)
I'd like to reset my router to its factory settings, which of course means my current password for accessing my wireless network will be erased. Once I go through the usual steps of setting up my network, would it be safe to use the same password I had before? Or would I be better off with a new one? 24.189.87.160 ( talk) 07:01, 15 July 2010 (UTC)
Loadlin can chain load linux from DOS or win9x. Is there a program, which would allow chain loading some other OS from linux in similar way? (Or linux cannot be overwritten similarily to DOS). - Yyy ( talk) 10:33, 15 July 2010 (UTC)
I am trying to write a Windows batch file that will merge two similar folder trees, but I've never done this before and I am not a programmer. Same-name folders are merged, but same-name files are renamed before copying. It seems to be easiest to make a new copy of one of the folder-trees, and then merge the other folder-tree into it. This is the where I've got to so far:
C:\>FOR /R C:\mypath\ %%G IN (*.*) DO CALL :copyfile %%G
IF NOT EXIST %destfile% copy %srcfile% %destfile% /V ELSE copy %srcfile% %destfile%.bak /V
1) What is the "%%G" for? What does it do? B) How do I get :copyfile to behave like a subroutine? 3) Most importantly, if it finds that there is a sub-folder in the source folder that is not in the destination folder, how do I get it to copy the subfolder (and all its files and subfolders) into the destination folder? Thanks 92.24.191.1 ( talk) 12:47, 15 July 2010 (UTC)
FOR /R traverses the directiory tree, I believe. Once I have solved 3) above then I should have a quick solution for my problem, apart from tinkering with 2). Perhaps it will do what I asked about in 3) without needed anything else. 92.29.115.235 ( talk) 14:28, 15 July 2010 (UTC)
I do not believe that rsync or any of the other similar tools will do what is described above - none of them will rename a file with a clashing name. I've tried them and searched for a solution for a long time - none found. Thanks 92.29.115.235 ( talk) 14:49, 15 July 2010 (UTC)
4) Is it possible to find out if a directory in the current source folder does not exist in the current destination folder? Thanks 92.29.115.235 ( talk) 14:51, 15 July 2010 (UTC)
Another helpful tool for copying subdirectories: xcopy /s will recursively copy an entire directory tree. Xcopy is the extended copy tool on Windows; type xcopy /? for documentation of its other features. It may be helpful inside your script at some point, providing features that regular Windows copy does not. Nimur ( talk) 16:11, 15 July 2010 (UTC)
batch script
|
---|
@echo off & setlocal enableextensions enabledelayedexpansion
set srcroot=c:\src
set dstroot=c:\dst
set op=echo
set srcrootlen=0
set x=%srcroot%
:length_loop
set x=%x:~1%
set /a srcrootlen += 1
if defined x goto length_loop
for /r "%srcroot%" %%i in (*) do (
set src=%%i
set dst=!dstroot!!src:~%srcrootlen%!
call :copysub "!src!" "!dst!"
)
goto :end
:copysub
set dst=%~2
set n=0
:copyloop
if not exist "%dst%" goto docopy
set /a n += 1
set dst=%~dpn2 (%n%)%~x2
goto copyloop
:docopy
if not exist "%~dp2" %op% mkdir "%~dp2"
%op% copy %1 "%dst%"
:end
|
Thank you very much for the batch file. "The script will fail if there's a source directory with the same name as a destination file." Read that twice: "source directory", "destination file". Would there be any way of checking that before using the script please?
While rsync looks promising, according to the article it is for Unix systems and not Windows, but I also see that the article mentions some Windows versions DeltaCopy QtdSync and RsyncBackup which I will look at. Thanks 92.24.182.219 ( talk) 10:15, 16 July 2010 (UTC)
All of DeltaCopy QtdSync and RsyncBackup only work over a network, and do not mention anything about not overwriting files, so appear to be of no use for this problem. 92.29.117.202 ( talk) 16:25, 17 July 2010 (UTC)
batch script
|
---|
@echo off & setlocal enabledelayedexpansion
set srcroot=c:\src
set dstroot=c:\dst
set srcrootlen=0
set x=%srcroot%
:length_loop
set x=%x:~1%
set /a srcrootlen += 1
if defined x goto length_loop
for /d /r "%srcroot%" %%i in (*) do (
set src=%%i
set dst=!dstroot!!src:~%srcrootlen%!
call :sub "!src!" "!dst!"
)
pause
goto :end
:sub
if not exist %2 goto end
set attr=%~a2
if not d==%attr:~0,1% (
echo dir: %~1
echo file: %~2
echo.
)
:end
|
I'm not sure if I should run around shouting "Eureka!" but the utility here says it can rename things in its commands: http://syncdir.sourceforge.net/ On the other hand there is an implication that it overwites rather than merging the same directory names. There are seemingly dozens of things with a similar name. Thanks 92.24.178.184 ( talk) 12:11, 18 July 2010 (UTC)
The graphics card to my first gen Mac Pro died. While the new retail options for Mac graphics card are pretty slim, they are all PCI Express 2.0. Wikipedia's entry on PCI Express says they are supposed to be backwards compatible with v1.1 and v1.0 motherboards (restricted bandwidth, of course). Has anyone tried this? -- 70.167.58.6 ( talk) 15:14, 15 July 2010 (UTC)
I was reading in Wired that each frame in Toy Story 3 took seven hours to render (on average). But 15 years earlier, Toy Story 1 took 5 hours per frame. How would you compare computer speed then to now? Low MHz unicore RISC Sparc CPUs vs today's GHz multi-core designs. 100x faster? -- 70.167.58.6 ( talk) 19:32, 15 July 2010 (UTC)
Also this [7] mentions that TS1 was rendered at 1526x922 pixels.
Toy Story aside, how much faster is a modern high end dual Quad-Core work station compared to a 1995 Sun SPARCstation? -- 70.167.58.6 ( talk) 16:24, 16 July 2010 (UTC)
A number of times over the years, while browsing various sites (including Wikipedia) I've been presented with the actual php code of the page I requested. This has in at least one occasion, in this case a small forum, given me the moderators password which was in the php code. After another refresh, the site was back to normal displaying the correct page. My question is, why does this happen, and what can be done to prevent it if one were running their own server with php pages? 82.43.90.93 ( talk) 19:38, 15 July 2010 (UTC)
Thank you for the responses :) @Rocketrye12 I'm certain it was the php code; started with "<?php" etc, contained everything you'd expect to see in php code, including a config section with moderator passwords, board settings etc, and the url of the page was something like http://example.com/index.php?page=4 When it happened on Wikipedia I think I was trying to edit a page, but again it was clearly php code with bits of garbled html. After a refresh it was back to normal. I can't replicate it - in however many years I've been browsing the internet I've only seen this happen around 3 times 82.43.90.93 ( talk) 00:17, 16 July 2010 (UTC)
Which laptop manufacturers offer international warranties (= even hardware failure can be fixed at no cost in countries other than the country where it's bought)? Alternatively, are there other companies offering the same (offering to fix a laptop, cover the costs of fixing a laptop, etc.) for a reasonable price (<100, mayyybe <150)? Or where else do I find people who know the answer to this question (other than calling every single manufacturer)? Thanks a lot, Thanks for answering ( talk) 23:20, 15 July 2010 (UTC)