Page 1 of 1 1
Topic Options
#121364 - 2004-06-16 04:41 PM Space in the file name
milhouz Offline
Fresh Scripter

Registered: 2004-03-19
Posts: 7
Hello everybody,

I have to copy some files in a folder.
The folder's name is TS Roaming Profile.

I can write TS~1 but the problem is that I have an other folder which is called TS Homes.
I can't change the names..
Do you know how I can do ??

Thank you in advance for your help.

Top
#121365 - 2004-06-16 04:45 PM Re: Space in the file name
Radimus Moderator Offline
Moderator
*****

Registered: 2000-01-06
Posts: 5187
Loc: Tampa, FL
use quotes...

"C:\Program Files\Microsoft Office\Office\EXCEL.EXE"
_________________________
How to ask questions the smart way <-----------> Before you ask

Top
#121366 - 2004-06-16 04:46 PM Re: Space in the file name
Richard H. Administrator Offline
Administrator
*****

Registered: 2000-01-24
Posts: 4946
Loc: Leatherhead, Surrey, UK
Put the path in quotes.

Code:
Copy "C:\foo\TS Roaming Profiles" "c:\bar\TS Roaming Profiles"


Top
#121367 - 2004-06-16 05:02 PM Re: Space in the file name
Kdyer Offline
KiX Supporter
*****

Registered: 2001-01-03
Posts: 6241
Loc: Tigard, OR
Quotes is probably the best way.. However, another way to do this is to use the /x switch for DOS Dir. This will give you the short version.

Quote:


/X This displays the short names generated for non-8dot3 file
names. The format is that of /N with the short name inserted
before the long name. If no short name is present, blanks are
displayed in its place.





Oh.. And by the way, we just removed removed Roaming Profiles. It sure has eliminated a ton of headaches.

Thanks,

Kent


Edited by kdyer (2004-06-16 05:03 PM)
_________________________
Utilize these resources:
UDFs (Full List)
KiXtart FAQ & How to's

Top
#121368 - 2004-06-16 06:48 PM Re: Space in the file name
NTDOC Administrator Offline
Administrator
*****

Registered: 2000-07-28
Posts: 11634
Loc: Space
Quote:

Oh.. And by the way, we just removed removed Roaming Profiles. It sure has eliminated a ton of headaches




AMEN

Top
#121369 - 2004-06-16 06:58 PM Re: Space in the file name
Shawn Administrator Offline
Administrator
*****

Registered: 1999-08-13
Posts: 8611
You guys no likey da roamies ?
Top
#121370 - 2004-06-16 07:59 PM Re: Space in the file name
Les Offline
KiX Master
*****

Registered: 2001-06-11
Posts: 12734
Loc: fortfrances.on.ca
BOOO
_________________________
Give a man a fish and he will be back for more. Slap him with a fish and he will go away forever.

Top
#121371 - 2004-06-16 09:08 PM Re: Space in the file name
ShaneEP Moderator Offline
MM club member
*****

Registered: 2002-11-29
Posts: 2127
Loc: Tulsa, OK
roamies =
Top
Page 1 of 1 1


Moderator:  Jochen, Allen, Radimus, Glenn Barnas, ShaneEP, Ruud van Velsen, Arend_, Mart 
Hop to:
Shout Box

Who's Online
1 registered (Henriques) and 2516 anonymous users online.
Newest Members
fgarcia, Viginette, ManuvdWielNL, Sir_Barrington, batdk82
17889 Registered Users

Generated in 0.06 seconds in which 0.025 seconds were spent on a total of 12 queries. Zlib compression enabled.

Search the board with:
superb Board Search
or try with google:
Google
Web kixtart.org