Computing.Net > Forums > Programming > editing dos batch file

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

editing dos batch file

Reply to Message Icon

Name: ouneeb
Date: October 28, 2009 at 06:17:37 Pacific
OS: Windows XP
Subcategory: Batch
Tags: batch, DOS, editing
Comment:

hello there i dont know whwther this the right section to post but i found this more appropriate then others i want to edit the install path of a dos batch file and i dont know the commands i tried to change it but somehow the changes delete data from my drive the actual commands are which i can acess by right clicking on the icon and selecting edit
set CDIR=%CD%\Install Files
set ID=%USERPROFILE%\Games\Unreal Tournament 2004
set TD=%HOMEDRIVE%\UT2004-TMP
i want to change it to d:\games how should i do that and also there is a command line with echo * Game Path: %ID%



Sponsored Link
Ads by Google

Response Number 1
Name: Mechanix2Go
Date: October 28, 2009 at 06:29:14 Pacific
Reply:

This is as good a place as any.

There is no DOS in XP.

Do you mean that the changed file causes data to be deleted?

I may help to post the unmodified and the modified so someone can figure out what's going on.


=====================================
Helping others achieve escape felicity

M2


0

Response Number 2
Name: Razor2.3
Date: October 29, 2009 at 07:34:27 Pacific
Reply:

i want to change it
Define "it"


0

Response Number 3
Name: Mechanix2Go
Date: October 30, 2009 at 02:11:02 Pacific
Reply:

R2,

Sounds like something my old boss at UMAD would say.

"define small problem"


=====================================
Helping others achieve escape felicity

M2


0

Response Number 4
Name: Razor2.3
Date: October 30, 2009 at 03:40:46 Pacific
Reply:

Well, whenever someone says "it," I think of the movie It.


0

Response Number 5
Name: ace_omega
Date: October 30, 2009 at 07:47:54 Pacific
Reply:

Change this line...

set ID=%USERPROFILE%\Games\Unreal Tournament 2004

with

set ID=D:\Games\Unreal Tournament 2004

And yes IT would be nice to see the entire code.


0

Related Posts

See More



Response Number 6
Name: Razor2.3
Date: October 30, 2009 at 10:26:53 Pacific
Reply:

Perhaps I'm missing something. Why don't you just open the script in Notepad, and make the change?


0

Sponsored Link
Ads by Google
Reply to Message Icon





Use following form to reply to current message:

Login or Register to Reply
LoginRegister


Sponsored links

Ads by Google


Results for: editing dos batch file

DOS Batch File Commands www.computing.net/answers/programming/dos-batch-file-commands/14637.html

Spilt a numeric value in dos batch file www.computing.net/answers/programming/spilt-a-numeric-value-in-dos-batch-file/19115.html

Batch file to copy and edit file www.computing.net/answers/programming/batch-file-to-copy-and-edit-file/16997.html