Mourning the loss of our friend, WhitPhil.
There's no such thing as a stupid question, but they're the easiest to answer.
JoinTour
Login
Search
 
DOS/PDA/Other
Tag Cloud
access audio black screen blue screen boot bsod connection crash dell desktop drivers dvd email error excel firefox hard drive hardware hijackthis internet keyboard laptop malware monitor motherboard network networking outlook problem ram recovery router safe mode screen slow sound spyware tdlwsp.dll trojan upgrade vba video virus vista vundo windows windows 7 windows vista windows xp wireless
Search
Search for:
Tech Support Guy Forums > Operating Systems > DOS/PDA/Other >
Solved: Batch File - For Loop Counting Characters within XCopy

Tip: Click here to scan for System Errors and Optimize PC performance
[ Sponsored Link ]

Closed Thread
 
Thread Tools
scrfix's Avatar
Computer Specs
Senior Member with 269 posts.
 
Join Date: May 2009
Experience: Computer Repair Expert
25-Jun-2009, 01: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, Corporate Gifts
Resources LLC: Water Treatment Coagulation, Water Recycling

Last edited by scrfix : 25-Jun-2009 01:38 PM.
Squashman's Avatar
Distinguished Member with 14,988 posts.
 
Join Date: Apr 2003
Location: 1265 Lombardi Ave
Experience: IIAHYAYCESA,YAADA!
25-Jun-2009, 01: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 5,486 posts.
 
Join Date: Aug 2007
Location: Oregon, USA
Experience: Intermediate
26-Jun-2009, 02: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 Desktop Experience
Of course I know all the answers ; I just don't always match the answers to the right questions
Are you aware of the New Signature Limitations?
scrfix's Avatar
Computer Specs
Senior Member with 269 posts.
 
Join Date: May 2009
Experience: Computer Repair Expert
27-Jun-2009, 12: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.
Closed Thread Bookmark and Share

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.

Smart Search

Find your solution!



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


You Are Using:
Server ID
Advertisements do not imply our endorsement of that product or service.
All times are GMT -5. The time now is 01:31 AM.
Copyright © 1996 - 2009 TechGuy, Inc. All rights reserved.
Powered by vBulletin, Copyright © 2000 - 2009, Jelsoft Enterprises Ltd.
Powered by Cermak Technologies, Inc.