Phil
Thanks for responding, but im not 100% sure what you mean. Unfortunately, im not a native Batch scripter.
Thanks
Rusty
Search found 5 matches
- 19 Jan 2017 07:08
- Forum: DOS Batch Forum
- Topic: How do i get error code from diskpart in batch file?
- Replies: 5
- Views: 5275
- 18 Jan 2017 09:11
- Forum: DOS Batch Forum
- Topic: How do i get error code from diskpart in batch file?
- Replies: 5
- Views: 5275
Re: How do i get error code from diskpart in batch file?
Silly me. I was supposed to add this setlocal EnableDelayedExpansion set tempfile="c:\windows\temp\diskpart_create_tmp.txt" set listfile="C:\windows\temp\diskpark_listdisks_tmp.txt" set otherfile="C:\windows\temp\diskpart_listdisks_output.txt" ECHO list volume >!listfil...
- 18 Jan 2017 06:58
- Forum: DOS Batch Forum
- Topic: How do i get error code from diskpart in batch file?
- Replies: 5
- Views: 5275
How do i get error code from diskpart in batch file?
Hi I have an automation batch script that calls diskpart and does things to disks. I need the script to pass success or error codes on end but cannot work out how to do it. An example would be that im trying to expand a disk using diskpart but there is no space available to do this. I get a message ...
- 18 Jan 2017 05:26
- Forum: DOS Batch Forum
- Topic: cannot use variable as path for for loop
- Replies: 2
- Views: 2699
Re: cannot use variable as path for for loop
Dave
Thanks for the prompt reply. Works a charm now.
Cheers
R
Thanks for the prompt reply. Works a charm now.
Cheers
R
- 18 Jan 2017 04:08
- Forum: DOS Batch Forum
- Topic: cannot use variable as path for for loop
- Replies: 2
- Views: 2699
cannot use variable as path for for loop
Hi Apologies for the simplicity of this, but Batch is not my native tongue Im trying to clean up a script to use variables as paths rather than defining them inline. But everytime i put a variable name into the for loop it fails. So the following snip works setlocal EnableDelayedExpansion set tempfi...