Dos path sytax

  • Thread starter Thread starter jtb
  • Start date Start date
J

jtb

I need to add C:\documents and setting to a batch file.

It bombs because the path is too long.

Where do I find the correct sytax
 
Try enclosing the entire path in "quotes" or use
%AllUsersProfile%
in place of
C:\Documents and Settings\All Users

and
%UserProfile%
in place of
C:\Documents and Settings\%UserName%
 
Or use the 8.3 name. For this case C:\DOCUME~1
To show the 8.3 names goto a command prompt and use dir /x



Dave Patrick said:
Try enclosing the entire path in "quotes" or use
%AllUsersProfile%
in place of
C:\Documents and Settings\All Users

and
%UserProfile%
in place of
C:\Documents and Settings\%UserName%

--
Regards,

Dave Patrick ....Please no email replies - reply in newsgroup.
Microsoft MVP [Windows NT/2000 Operating Systems]

jtb said:
I need to add C:\documents and setting to a batch file.

It bombs because the path is too long.

Where do I find the correct sytax
 
Back
Top