Search found 3 matches

by lalitpct
18 Apr 2016 21:13
Forum: DOS Batch Forum
Topic: Setting regsitry values temporary in bat file
Replies: 1
Views: 2518

Setting regsitry values temporary in bat file

For an application we set registry value howevere not everyone has admin rights hence was looking for some option where we can set the value temporary in bat file. Tried set command but it didn't work. set TEST123=DBMSSOCN,cobserver1.nam.nsroot.net,4300 May I know how we can set values of registry t...
by lalitpct
16 Jan 2012 05:49
Forum: DOS Batch Forum
Topic: remove carriage return in dos command
Replies: 7
Views: 22938

Re: remove carriage return in dos command

seems the code doesnt work it gives error


C:\Users\Ld78977>for /F "delims=" %%a in ('ver') do set version=%%a
%%a was unexpected at this time.

C:\Users\Ld78977>echo %username% OS is %version%
ld78977 OS is %version%
by lalitpct
16 Jan 2012 04:33
Forum: DOS Batch Forum
Topic: remove carriage return in dos command
Replies: 7
Views: 22938

remove carriage return in dos command

Is it possible to have below outputs in one single line and not in two lines , basically carriage retun takes it to next line?
If possible I want one line command to remove the carraige return
echo %username; OS version is : &VER