Search found 5 matches

by Gerry Peters
19 Apr 2016 12:23
Forum: DOS Batch Forum
Topic: Win 10 works differently with this BAT file
Replies: 11
Views: 6997

Re: Win 10 works differently with this BAT file

Thanks penpen. I tried it by pasting your text into Notepad and saving it as a BAT file. When I run it, the CMD window opens but again no text. Can someone please try this and see if it works for them?

Thanks,
by Gerry Peters
18 Apr 2016 23:05
Forum: DOS Batch Forum
Topic: Win 10 works differently with this BAT file
Replies: 11
Views: 6997

Re: Win 10 works differently with this BAT file

Running the script will automatically create and fill in diskpart-script.txt; you don't need to do anything. %temp% is a system variable - again, you don't need to do anything. I put your script in Notepad and named it diskpart.BAT Oh no, don't do that; if you do, the script will see the line where...
by Gerry Peters
18 Apr 2016 18:26
Forum: DOS Batch Forum
Topic: Win 10 works differently with this BAT file
Replies: 11
Views: 6997

Re: Win 10 works differently with this BAT file

I put your script in Notepad and named it diskpart.BAT
When I double clicked on it, I just got a blank CMD (admin) screen

I'm not sure if I'm supposed to put some text in this notepad file
diskpart-script.txt, if so let me know

And what temp folder do I put it in C:\temp?

Thanks,
by Gerry Peters
18 Apr 2016 00:55
Forum: DOS Batch Forum
Topic: Win 10 works differently with this BAT file
Replies: 11
Views: 6997

Re: Win 10 works differently with this BAT file

The diskpart script also doesn't work in Win 10 diskpart /s C:windowssystem32diskpart1.txt The path is broken, or it is a relative path. To run as admin you may be able to use the runas command If you know how to fix the errors, please give me a BAT file example. With BAT files I'm a newbie at writ...
by Gerry Peters
17 Apr 2016 10:59
Forum: DOS Batch Forum
Topic: Win 10 works differently with this BAT file
Replies: 11
Views: 6997

Win 10 works differently with this BAT file

This tutorial was made before Win 10 and needs some revising. m First of all it needs to be an CMD (admin) not a regular CMD. I went ahead and created a shortcut to CMD.EXE and put under advanced "run as administrator" and this works. I'm not sure how to get a BAT file to run this shortcut...