Search found 75 matches
- 23 Sep 2016 11:39
- Forum: DOS Batch Forum
- Topic: Setting up scripting environment
- Replies: 9
- Views: 9743
Re: Setting up scripting environment
This should work - it did on my system: test.cmd: START "Window 1" CD /D C:\Directory1 START "Window 2" CD /D C:\Directory2 REM ... ECHO Profit! Read the whole thread. There is a little more to it then just open another cmd.exe instance and changing to a directory. It looks like...
- 21 Sep 2016 21:03
- Forum: DOS Batch Forum
- Topic: Creating a script to gather PC information - to assist those asking for help
- Replies: 167
- Views: 178261
Re: Creating a script to gather PC information - to assist those asking for help
foxidrive wrote:douglas.swehla wrote:If anyone can test on a pre-XP machine, I'd be interested in knowing whether SESSION was available then.
I booted up my VirtualBox Windows 98 and it doesn't support NET SESSION
There you have it, folks. Thanks, foxi.
- 21 Sep 2016 13:30
- Forum: DOS Batch Forum
- Topic: Creating a script to gather PC information - to assist those asking for help
- Replies: 167
- Views: 178261
Re: Creating a script to gather PC information - to assist those asking for help
@Douglas As you can see I use NET SESSION here. Although I don't know since when NET is available. ComputerHope says the NET command has been available since Windows 95. The different syntax listings (<--2000, XP, Vista-->) imply that the SESSION subcommand was introduced with XP, and that its usag...
- 21 Sep 2016 10:34
- Forum: DOS Batch Forum
- Topic: Creating a script to gather PC information - to assist those asking for help
- Replies: 167
- Views: 178261
Re: Creating a script to gather PC information - to assist those asking for help
If the question is "Am I elevated right now," then fsutil /? is a good quick check - - it requires elevated status even to view the help. This check is outdated. I know it requires elevation on Win7 but I also know it doesn't on Win10. I can't say anything about the behavior on Win8/8.1. ...
- 20 Sep 2016 22:06
- Forum: DOS Batch Forum
- Topic: Creating a script to gather PC information - to assist those asking for help
- Replies: 167
- Views: 178261
Re: Creating a script to gather PC information - to assist those asking for help
Do you have elevated rights on Win8.1 even if the script reports that you don't have? What is an easy test to show that? If the question is "Am I elevated right now," then fsutil /? is a good quick check - - it requires elevated status even to view the help. If the question is "Can I...
- 13 Sep 2016 17:41
- Forum: DOS Batch Forum
- Topic: “Remote command failed with exit status 127â€
- Replies: 1
- Views: 3937
Re: “Remote command failed with exit status 127â€
. . .it is returning “Remote command failed with exit status 127”. However, if I am hard coding the value of %var% in cd as cd c:\X\Y\Z\a.b.c rather than passing as cd c:\X\Y\Z\%var%, script is executing fine I tried couple of ways to handle path setting and call uninstaller.exe after changing the ...
- 10 Sep 2016 17:44
- Forum: DOS Batch Forum
- Topic: Creating a script to gather PC information - to assist those asking for help
- Replies: 167
- Views: 178261
Re: Creating a script to gather PC information - to assist those asking for help
@Douglas I've noticed that all the results posted so far report that delayed expansion is disabled for both the system and the user. That seems unlikely, and I think it's because the test is backwards. That's something I already answered to you. You can enable it using setlocal EnableDelayedExpansi...
- 08 Sep 2016 13:48
- Forum: DOS Batch Forum
- Topic: Creating a script to gather PC information - to assist those asking for help
- Replies: 167
- Views: 178261
Re: Creating a script to gather PC information - to assist those asking for help
-------------------------------------------------------------------------------- Windows version : Microsoft Windows [Version 6.1.7601] Product name : Windows 7 Professional, 64 bit Performance indicators : Processor Cores: 4 Visible RAM: 4072532 kilobytes Date/Time format : mm/dd/yy (12 hours) Wed...
- 08 Sep 2016 13:12
- Forum: DOS Batch Forum
- Topic: The topic is to reach a value, in a batch file with only one setted variable
- Replies: 26
- Views: 24514
Re: The topic is to reach a value, in a batch file with only one setted variable
What i have done is to delete the tokens code expression and the call. I cannot pass the "eol=C" parameter "option". The output with my cmd environment has additional two lines. >echo C:\Users\etc. >echo C:\Users\etc. To skip that option i have to use the parameter "eol=C&q...
- 08 Sep 2016 12:07
- Forum: DOS Batch Forum
- Topic: The topic is to reach a value, in a batch file with only one setted variable
- Replies: 26
- Views: 24514
Re: The topic is to reach a value, in a batch file with only one setted variable
I have to improve my contributions. When you write, try to use short, simple sentences. Use literal terms, and avoid figures of speech like "long as a river". Those are okay in conversation, but in technical writing, it is better to be clear than to be creative. Many fluent English speake...
- 05 Sep 2016 17:13
- Forum: DOS Batch Forum
- Topic: The topic is to reach a value, in a batch file with only one setted variable
- Replies: 26
- Views: 24514
Re: The topic is to reach a value, in a batch file with only one setted variable
I started to wrote in english sentences that fit my issue. I am not exhausted from the confrontation, i just hope the pain to read is not an ake. It's not an ache, but it is difficult. What is your native language? There are many international users here. Maybe one of them can help you ask your que...
- 05 Sep 2016 00:52
- Forum: DOS Batch Forum
- Topic: The topic is to reach a value, in a batch file with only one setted variable
- Replies: 26
- Views: 24514
Re: The topic is to reach a value, in a batch file with only one setted variable
@aGerman, I trust your translation more than Google's. Can you help us out here? I can't translate bad English into good English as long as I don't understand a word. Sorry. Steffen I meant, can you translate my English to German? I hope it's passable But also, there's this, from a few posts up. Lo...
- 04 Sep 2016 20:08
- Forum: DOS Batch Forum
- Topic: Re :File Transfer
- Replies: 12
- Views: 11853
Re: Re :File Transfer
It depends on what you mean by "remote". If the servers are on your network, then the normal utilities (MOVE, COPY, XCOPY, ROBOCOPY) should work. I think the first three require that you have a drive letter mapped to a share on the remote machine. ROBOCOPY lets you specify a drive letter o...
- 04 Sep 2016 17:31
- Forum: DOS Batch Forum
- Topic: The topic is to reach a value, in a batch file with only one setted variable
- Replies: 26
- Views: 24514
Re: The topic is to reach a value, in a batch file with only one setted variable
@aGerman, I trust your translation more than Google's. Can you help us out here? @ledlightjungled, It looks like you are trying to use arrays. Batch files do not have native support for array data structure. If you want to, you can create your own, and we can show you how. Square brackets ([]) are n...
- 04 Sep 2016 17:16
- Forum: DOS Batch Forum
- Topic: The topic is to reach a value, in a batch file with only one setted variable
- Replies: 26
- Views: 24514
Re: The topic is to reach a value, in a batch file with only one setted variable
@echo off setlocal enabledelayedexpansion for /l %%g in (1,1,15) do ( set /a i=i+1 set day[!i!]=0%%g ) for /l %%f in (16,1,30) do ( set /a y=y+1 set odd[!y!]=%%f ) for /f "tokens=1,2 usebackq" %%d in ('[ ]') do set "mixit=altgraphik=%%d,closed=%%e" set "%mixit:,=" &...