cmd problems

  • Thread starter Thread starter Ja
  • Start date Start date
J

Ja

Whenever I use a shortcut or from within another file the command starting
with cmd.exe /c all I get is the DOS screen - the actual file I'm trying to
run or open doesn't.
Using XP Pro SP1

Thanks,
 
Hi Ja,

A bit more information please. What command are you trying to run?
What is your system (XP I suppose).

CreateWindow
 
Does the actual file or command work by itself? What is the command or
file?

Try cmd /k filename For example, cmd /k ipconfig

cmd /k ipconfig from Start | Run. Ipconfig will run and cmd stays open.

cmd /c ipconfig from Start | Run. Ipconfig will run and cmd closes.

--
Hope this helps. Let us know.

Wes
MS-MVP Windows Shell/User

In
 
Try using double quotes (").

cmd /k "C:\Documents and Settings\Wesley Vogel\Desktop\Winlogon Notification
Packages.doc"

cmd /c "C:\Documents and Settings\Wesley Vogel\Desktop\Winlogon Notification
Packages.doc"

cmd /c "%userprofile%\Desktop\Winlogon Notification Packages.doc"

cmd /c "%userprofile%\Desktop\KleinTools_ToolCatalog.pdf"

Unless you're using a batch file, I don't see why you're using cmd.exe at
all.

--
Hope this helps. Let us know.

Wes
MS-MVP Windows Shell/User

In
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top