There's no such thing as a stupid question, but they're the easiest to answer.
JoinTour
Login
Search
DOS/Other
Tag Cloud
access acer asus bios bsod computer crash driver drivers error ethernet excel freeze gaming hard drive hardware hdmi internet laptop malware memory modem monitor motherboard netgear network printer problem ram registry repair router slow software sound svchost.exe trojan ubuntu 11.10 uninstall usb video virus vista wifi windows windows 7 windows 7 32 bit windows 7 64 bit windows xp wireless
Search
Search for:
Tech Support Guy Forums > Operating Systems > DOS/Other >
Solved: Batch File - For Loop Counting Characters within XCopy

Reply  
Thread Tools
scrfix's Avatar
Computer Specs
Member with 337 posts.
 
Join Date: May 2009
Experience: Computer Repair Expert
25-Jun-2009, 02:26 PM #61
Update 06-25-09
I figured out the issue. The program removed the temp directory and did not recreate it so therefore the next time I attempted to go there, it wasn't there at all and I was getting the error. That is why PushD %temp% was not working in the command line because it that system literally could not find the path specified because it didn't exist.


Old Data
The error here is PushD %temp%
When in the command line on an XP box, the error is returned:
The system cannot find the path specified.
__________________
Wayne Leiser, Spectacular Computer Repair Computer Repair, Computer Services
World Famous Gift Baskets: Gift Baskets
Resources LLC: Water Treatment Coagulation, Water Recycling

Last edited by scrfix; 25-Jun-2009 at 02:38 PM..
Squashman's Avatar
Trusted Advisor with 18,706 posts.
 
Join Date: Apr 2003
Location: 1265 Lombardi Ave
Experience: Bocks of Rox
25-Jun-2009, 02:58 PM #62
I would think you would want to remove everything inside the %TEMP% directory and not remove the whole thing.
TheOutcaste's Avatar
Computer Specs
Distinguished Member with 9,048 posts.
 
Join Date: Aug 2007
Location: Oregon, USA
Experience: Intermediate
26-Jun-2009, 03:58 AM #63
Keep in mind when using the CD command, if you are switching drives, you must use the /D switch to actually change to that drive. Without the /D, it changes the current directory on the specified drive, but doesn't switch to it.
For example, assuming you are in C:\ and D:\ is the current directory on D: (Keep in mind D:\ is two parts, the Drive D: and the directory \)
Try these four commands (using real folders of course)
C:\>CD D:\Windows\System32
C:\>Dir D:
c:\>Dir D:\
C:\>copy test.txt D:

Note the prompt doesn't change, you are still in C:\.
The Dir D: command will display a directory for D:\Windows\System32, not the root of the D: drive. This is because you specified the drive letter without a directory, so it uses the Current Directory for that drive.
Dir D:\ will display the root of D: as you have specified a directory
The copy command copies to D:\Windows\System32, not to D:\

PushD will change drive letters, and should be followed by a PopD to clear the stack, but isn't really needed. It will be cleared when the Command Prompt closes. PushD also doesn't need to have paths with spaces quoted

As you've discovered, if you delete the Temp folder (or any other system folder), probably best to immediately re-create one to avoid it being MIA.
__________________
Microsoft MVP - Windows Expert - Consumer
Of course I know all the answers ; I just don't always match the answers to the right questions

scrfix's Avatar
Computer Specs
Member with 337 posts.
 
Join Date: May 2009
Experience: Computer Repair Expert
27-Jun-2009, 01:00 AM #64
Jerry,

Thank you for that. I did discover that and that is how I rectified it by checking to see if it was there and if it wasn't then creating it again.
Reply

THIS THREAD HAS EXPIRED.
Are you having the same problem? We have volunteers ready to answer your question, but first you'll have to join for free. Need help getting started? Check out our Welcome Guide.

Search Tech Support Guy

Find the solution to your
computer problem!




Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
WELCOME TO TECH SUPPORT GUY! Are you looking for the solution to your computer problem? Join our site today to ask your question -- for free! Our site is run completely by volunteers who want to help you solve your computer problems. See our Welcome Guide to get started.
Thread Tools



Facebook Facebook Twitter Twitter TechGuy.tv TechGuy.tv Mobile TSG Mobile
You Are Using:
Server ID
Advertisements do not imply our endorsement of that product or service.
All times are GMT -4. The time now is 01:23 PM.
Copyright © 1996 - 2011 TechGuy, Inc. All rights reserved.

Powered by Cermak Technologies, Inc.