problem with start.exe in 1.1.41 ?

Open forum for end-user questions about Wine. Before asking questions, check out the Wiki as a first step.
Forum Rules
Locked
leniviy
Level 2
Level 2
Posts: 39
Joined: Sat Jun 27, 2009 3:19 pm

problem with start.exe in 1.1.41 ?

Post by leniviy »

inside cmd shell a simple command "start cmd" not works anymore. But I don't see any similar reports from other people. What can be wrong? I already tried new wineprofile

Code: Select all

[il@IL ~]$ LANG=C wine cmd
err:menubuilder:init_xdg error looking up the desktop directory
CMD Version 1.1.41


Z:\home\il>start cmd
File not found


Z:\home\il>start
Start a program, or open a document in the program normally used for files with that suffix.
Usage:
start [options] program_filename [...]
start [options] document_filename

Options:
/M[inimized] Start the program minimized.
/MAX[imized] Start the program maximized.
/R[estored]  Start the program normally (neither minimized nor maximized).
/W[ait]      Wait for started program to finish, then exit with its exit code.
/Unix        Use a Unix filename and start the file like windows explorer.
/ProgIDOpen  Open a document using the following progID.
/L           Show end-user license.

start.exe version 0.2 Copyright (C) 2003, Dan Kegel
Start comes with ABSOLUTELY NO WARRANTY; for details run with /L option.
This is free software, and you are welcome to redistribute it
under certain conditions; run 'start /L' for details.

Z:\home\il>C:\windows\command\start.exe cmd
fixme:exec:SHELL_execute flags ignored: 0x00000100

Z:\home\il>

Code: Select all

[il@IL ~]$ LANG=C WINEDEBUG=cmd wine cmd
err:menubuilder:init_xdg error looking up the desktop directory
trace:cmd:wmain Command line parm: 'L"C:\\windows\\system32\\cmd.exe"'
trace:cmd:wmain Set L"=Z:" to L"Z:\\home\\il"
CMD Version 1.1.41


Z:\home\il>start cmd
trace:cmd:WCMD_DumpCommands Parsed line:
trace:cmd:WCMD_DumpCommands 0x132888 0 00 (nil) L"start cmd" Redir:L""
trace:cmd:WCMD_process_commands Executing command: 'L"start cmd"'
trace:cmd:WCMD_execute command on entry:L"start cmd" (0x33f590), with '(null)'='(null)'
trace:cmd:WCMD_execute Command: 'L"start cmd"'
trace:cmd:WCMD_execute param1: L"cmd", param2: L""
trace:cmd:WCMD_run_program Searching in 'L".;C:\\windows\\system32;C:\\windows;C:\\windows\\system32\\wbem"' for 'L"start"'
trace:cmd:WCMD_run_program Found as L"Z:\\home\\il\\start.*"
trace:cmd:WCMD_run_program Found as L"C:\\windows\\system32\\start.*"
trace:cmd:WCMD_run_program Found as L"C:\\windows\\start.*"
trace:cmd:WCMD_run_program ASSUMING INTERNAL
File not found


Z:\home\il>start
trace:cmd:WCMD_DumpCommands Parsed line:
trace:cmd:WCMD_DumpCommands 0x132888 0 00 (nil) L"start" Redir:L""
trace:cmd:WCMD_process_commands Executing command: 'L"start"'
trace:cmd:WCMD_execute command on entry:L"start" (0x33f590), with '(null)'='(null)'
trace:cmd:WCMD_execute Command: 'L"start"'
trace:cmd:WCMD_execute param1: L"", param2: L""
trace:cmd:WCMD_run_program Searching in 'L".;C:\\windows\\system32;C:\\windows;C:\\windows\\system32\\wbem"' for 'L"start"'
trace:cmd:WCMD_run_program Found as L"Z:\\home\\il\\start.*"
trace:cmd:WCMD_run_program Found as L"C:\\windows\\system32\\start.*"
trace:cmd:WCMD_run_program Found as L"C:\\windows\\start.*"
trace:cmd:WCMD_run_program ASSUMING INTERNAL
Start a program, or open a document in the program normally used for files with that suffix.
Usage:
start [options] program_filename [...]
start [options] document_filename

Options:
/M[inimized] Start the program minimized.
/MAX[imized] Start the program maximized.
/R[estored]  Start the program normally (neither minimized nor maximized).
/W[ait]      Wait for started program to finish, then exit with its exit code.
/Unix        Use a Unix filename and start the file like windows explorer.
/ProgIDOpen  Open a document using the following progID.
/L           Show end-user license.

start.exe version 0.2 Copyright (C) 2003, Dan Kegel
Start comes with ABSOLUTELY NO WARRANTY; for details run with /L option.
This is free software, and you are welcome to redistribute it
under certain conditions; run 'start /L' for details.

Z:\home\il>C:\windows\command\start.exe cmd
trace:cmd:WCMD_DumpCommands Parsed line:
trace:cmd:WCMD_DumpCommands 0x132888 0 00 (nil) L"C:\\windows\\command\\start.exe cmd" Redir:L""
trace:cmd:WCMD_process_commands Executing command: 'L"C:\\windows\\command\\start.exe cmd"'
trace:cmd:WCMD_execute command on entry:L"C:\\windows\\command\\start.exe cmd" (0x33f590), with '(null)'='(null)'
trace:cmd:WCMD_execute Command: 'L"C:\\windows\\command\\start.exe cmd"'
trace:cmd:WCMD_execute param1: L":\\windows\\command\\start.exe", param2: L"cmd"
trace:cmd:WCMD_run_program Searching in 'L"C:\\windows\\command\\"' for 'L"start.exe"'
trace:cmd:WCMD_run_program Found as L"C:\\windows\\command\\\\start.exe"
fixme:exec:SHELL_execute flags ignored: 0x00000100

Z:\home\il>trace:cmd:wmain Command line parm: 'L"cmd"'
trace:cmd:wmain Set L"=Z:" to L"Z:\\home\\il"
trace:cmd:WCMD_DumpCommands Parsed line:
trace:cmd:WCMD_DumpCommands 0x1327f0 0 00 (nil) L"exit" Redir:L""
trace:cmd:WCMD_process_commands Executing command: 'L"exit"'
trace:cmd:WCMD_execute command on entry:L"exit" (0x33f590), with '(null)'='(null)'
trace:cmd:WCMD_execute Command: 'L"exit"'
trace:cmd:WCMD_execute param1: L"", param2: L""
DaVince
Level 8
Level 8
Posts: 1099
Joined: Wed Oct 29, 2008 4:53 pm

Post by DaVince »

Those traces don't really help, as they indicate that start.exe exists (but we already knew that)... What we'd need is some sort of indication of where it's trying to find cmd...

"start c:\windows\system32\cmd.exe" DOES seem to work, so it somehow doesn't find the program in that location by itself anymore.
leniviy
Level 2
Level 2
Posts: 39
Joined: Sat Jun 27, 2009 3:19 pm

Post by leniviy »

no, it doesn't
Z:\home\il>start c:\windows\system32\cmd.exe
File not found
leniviy
Level 2
Level 2
Posts: 39
Joined: Sat Jun 27, 2009 3:19 pm

Post by leniviy »

looks like
CreateProcessW(NULL, L"start.exe foo", ...) no longer works in 1.1.41, while
CreateProcessW(NULL, L"start.exe", ...) still works.
DaVince
Level 8
Level 8
Posts: 1099
Joined: Wed Oct 29, 2008 4:53 pm

Post by DaVince »

Weird, that one only does if you do it straight from sh using "wine start ...".

Since it's an exe, can't you just leave out the "start" part? You can launch EXE files by just referencing them without any "start", anyway...
leniviy
Level 2
Level 2
Posts: 39
Joined: Sat Jun 27, 2009 3:19 pm

Post by leniviy »

Locked