Search found 6 matches

by assisttool
25 Dec 2015 23:12
Forum: DOS Batch Forum
Topic: Complex script. Can't find error.
Replies: 11
Views: 5473

Re: Complex script. Can't find error.

The code sort of works. Let me explain. The script creates the folder and, finds and copies the files perfectly. Then it echos "Cannot perform and cyclic copy" and then just sits like it's doing something. I tried just leaving it alone for awhile but, after 3 hours it stays the same. Could...
by assisttool
24 Dec 2015 09:55
Forum: DOS Batch Forum
Topic: Complex script. Can't find error.
Replies: 11
Views: 5473

Re: Complex script. Can't find error.

So, this is what I have come up with so far. IF not exist %userprofile%\Desktop\AssistTool\ ( REM Creates a folder for the files. md %userprofile%\Desktop\AssistTool\ Echo Created Succesfully REM Finds the downloaded files and copies them to the folder. echo on cd %userprofile% DIR /B/S AssistTool.b...
by assisttool
23 Dec 2015 18:15
Forum: DOS Batch Forum
Topic: Complex script. Can't find error.
Replies: 11
Views: 5473

Re: Complex script. Can't find error.

Thanks foxidrive it appears to work better now. For the xcopy at the beginning. echo on cd C:\Users\%user% DIR AssistTool.bat /s > var1.txt find "C:\users" var1.txt> var2.txt xcopy "::directory variable" "C:\Users\%user%\Desktop\AssistTool" goto :Assist Is there a way t...
by assisttool
22 Dec 2015 18:32
Forum: DOS Batch Forum
Topic: Complex script. Can't find error.
Replies: 11
Views: 5473

Re: Complex script. Can't find error.

So I started by adding pauses in the code like you said foxidrive. :Direct Echo on pause SET /p direct= "Copy and paste file path here. " pause cd "%direct%" pause GOTO :Assist pause and :BugFix pause GOTO :Assist pause It worked just as I thought it would so I started to isolate...
by assisttool
21 Dec 2015 17:48
Forum: DOS Batch Forum
Topic: Complex script. Can't find error.
Replies: 11
Views: 5473

Re: Complex script. Can't find error.

I turned echo on so I could see what the code was doing and instead of Call :Assist it went to :userInfo SET /p userInfo= "What user do you want info on? " net user %userInfo% Call :Assist So I changed some things around and I got this result. :BugFix Call :Assist :userInfo SET /p userInfo...
by assisttool
20 Dec 2015 11:36
Forum: DOS Batch Forum
Topic: Complex script. Can't find error.
Replies: 11
Views: 5473

Complex script. Can't find error.

I have this script in a file that is supposed to help a beginner run commands in CMD. :Direct SET /p direct= "Copy and paste file path here. " cd "%direct%" Call :Assist But, when I run the command that I have set to call this it prints "Copy and paste file here. " But,...