Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

-w Command line switch

Status
Not open for further replies.

Mike3333

Programmer
Jan 18, 2005
32
US
Can some tell me what is wrong with this? The -w switch is suppose to change the working directory, but it doesn't seem to be working.

Shortcut Target =
C:\Folder\File.fsl -w C:\Folder\
 
Place the -w and location for the working directory BEFORE the file to execute once you get there.

And you need the path\exe for Paradox, not just the fsl.

Something like
"C:\Program Files\Corel\WordPerfect Office 2000\programs\pdxwin32.exe"
-q
-p c:\privdirs\ver9
-w c:\pdox\data start.ssl

If you have spaces anywhere in the path/file following the executable, the command line options should be in quotes as well.

By place the .fsl to open with before the '-w', Paradox is never seeing the -w and what follows.


Tony McGuire
"It's not about having enough time. It's about priorities.
 
Thanks for your reply Tony.

I put this in the shortcut and I get "Invalid Working Directory" Any ideas?

"D:\Program Files\WordPerfect Office 11\Programs\pdxwin32.exe" -q -p C:\ParadoxTables -w C:\ParadoxTables\Clean1.fsl
 
-w C:\ParadoxTables clean1.fsl

You need a DIRECTORY (folder for you younguns) for -w. Then a space. Then the file Paradox should start when it loads.


Tony McGuire
"It's not about having enough time. It's about priorities.
 
I missed it first time around.

The -p sets the PRIVATE directory.

This should NOT be your working directory.

Also, you don't need a path along with the clean1.fsl since you will be starting in the directory containing that file.

However, if you set the working directory to some *other* directory, you must include the full path to the file to start.

You should start using aliases for everything. Then it won't matter where your working directory is.




Tony McGuire
"It's not about having enough time. It's about priorities.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top