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.
DOS - Replace Environment variable
Name: trusp Date: January 27, 2009 at 23:05:53 Pacific OS: DOS CPU/Ram: Intel DUO Product: Ms / Ms/e6550 Subcategory: Batch
Comment:
Hi
I created the DOS based batch file as below:
set STR_PATH=%1 ........ ........
I am passing the argument as C:\TestDir\Test
So here in a period of time I need the STR_PATH value to be replaced as C:/TestDir/Test. Is there any way to replace '\' with '/' in DOS.
So present value is : STR_PATH=C:\TestDir\Test Required value is : STR_PATH=C:/TestDir/Test
Summary: How do I set environment variables in VB.NET? I tried shelling out -> set myvar="myval" But that doesn't work. I know Environ("myvar") gets the value, but what sets it? thanks ...
Summary: How to use environment variable in C? Hi, I'm trying to replace a column in a comma seperated file with a column in another file using sed/awk. Can anyone help me. Thanks Siva ...